/* Glassmorphism inspired auth screens based on puikinsh/login-forms glassmorphism example. */

body.auth-body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(140deg, #e0f2ff 0%, #bfdbfe 20%, #60a5fa 40%, #2563eb 65%, #1d4ed8 82%, #0f172a 100%);
    background-attachment: fixed;
    color: #fff;
}

.auth-page {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 80px;
    gap: 32px;
    min-height: calc(100vh - 220px);
    flex: 1 1 auto;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    position: relative;
    padding: 40px 38px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(20px);
    text-align: center;
}

.auth-card header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-card header h1 {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-shadow: 0 4px 8px rgba(12, 23, 50, 0.55);
}

.auth-card header p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 3px 6px rgba(12, 23, 50, 0.45);
}

.form-group {
    margin-bottom: 22px;
}

.floating-input {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.floating-input input {
    width: 100%;
    padding: 18px 16px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    text-shadow: 0 2px 4px rgba(12, 23, 50, 0.45);
}

.floating-input input::placeholder {
    color: transparent;
}

.floating-input label {
    position: absolute;
    left: 16px;
    top: 18px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(12, 23, 50, 0.45);
}

.floating-input input:focus,
.floating-input input:not(:placeholder-shown) {
    border-color: #38bdf8;
    background: rgba(255, 255, 255, 0.18);
}

.floating-input input:focus + label,
.floating-input input:not(:placeholder-shown) + label {
    transform: translateY(-10px);
    font-size: 0.78rem;
    color: #38bdf8;
}

.error-message {
    font-size: 0.78rem;
    color: #fecaca;
    margin-top: 8px;
    background: rgba(254, 202, 202, 0.12);
    padding: 6px 10px;
    border-radius: 12px;
    text-shadow: 0 2px 4px rgba(12, 23, 50, 0.45);
}

.auth-btn {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    background: linear-gradient(90deg, #38bdf8 0%, #818cf8 100%);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.35);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(129, 140, 248, 0.4);
}

.auth-footer {
    margin-top: 22px;
    text-align: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 2px 4px rgba(12, 23, 50, 0.45);
}

.auth-footer a {
    color: #a5b4fc;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    color: #fff;
}

.auth-messages {
    margin-bottom: 18px;
    border-radius: 12px;
    padding: 12px 16px;
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.4);
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(12, 23, 50, 0.45);
}

.auth-messages.error {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.5);
}

.auth-messages.success {
    background: rgba(74, 222, 128, 0.18);
    border-color: rgba(74, 222, 128, 0.5);
}

@media (max-width: 520px) {
    .auth-card {
        padding: 26px;
    }
}

.auth-body main .max-w-6xl {
    max-width: 72rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 0;
    padding-right: 0;
}

.auth-body main .max-w-6xl > .auth-page {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-body header .max-w-6xl,
.auth-body footer .max-w-6xl {
    max-width: 72rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-body header .max-w-6xl > div {
    width: 100%;
}
