*,
*::before,
*::after {
    box-sizing: border-box;
}

.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: #111827;
    position: relative;
    overflow-x: hidden;
}

/* Sky background — MaliTrack blue tint */
.auth-sky {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, #b8d4eb 0%, #c5dff5 35%, #d4ebf9 65%, #e8f4fc 100%);
}

.auth-cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    filter: blur(2px);
}

.auth-cloud--1 {
    width: 280px;
    height: 90px;
    top: 12%;
    left: 8%;
    box-shadow: 60px 20px 0 -10px rgba(255, 255, 255, 0.7),
                120px 10px 0 -20px rgba(255, 255, 255, 0.6);
}

.auth-cloud--2 {
    width: 200px;
    height: 70px;
    top: 22%;
    right: 15%;
    box-shadow: 50px 15px 0 -8px rgba(255, 255, 255, 0.65);
}

.auth-cloud--3 {
    width: 320px;
    height: 100px;
    bottom: 18%;
    left: 20%;
    opacity: 0.9;
    box-shadow: 80px 25px 0 -15px rgba(255, 255, 255, 0.75);
}

.auth-cloud--4 {
    width: 180px;
    height: 60px;
    bottom: 30%;
    right: 10%;
    opacity: 0.8;
}

/* Top brand */
.auth-brand {
    position: fixed;
    top: 24px;
    left: 32px;
    z-index: 2;
    display: block;
    text-decoration: none;
}

.auth-brand-logo {
    height: 44px;
    width: auto;
    display: block;
}

.auth-brand-icon,
.auth-brand-name {
    display: none;
}

/* Center layout */
.auth-main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 48px;
}

.auth-glass-card {
    width: 100%;
    max-width: 420px;
    padding: 40px 36px 36px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 24px 48px rgba(0, 0, 0, 0.04);
}

.auth-card-icon-wrap {
    display: none;
}

.auth-card-logo-wrap {
    text-align: center;
    margin-bottom: 20px;
}

.auth-card-logo {
    max-width: 180px;
    width: 100%;
    height: auto;
}

.auth-card-title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: #111827;
    letter-spacing: -0.02em;
}

.auth-card-desc {
    margin: 0 0 28px;
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
    color: #6b7280;
}

.auth-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 13px;
    line-height: 1.45;
}

.auth-field {
    position: relative;
    margin-bottom: 14px;
}

.auth-field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 15px;
    pointer-events: none;
}

.auth-field input {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 44px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #f3f4f6;
    color: #111827;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.auth-field input::placeholder {
    color: #9ca3af;
}

.auth-field input:focus {
    background: #fff;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(0, 74, 141, 0.12);
}

.auth-field input.is-invalid {
    border-color: #fca5a5;
    background: #fff5f5;
}

.auth-field--password input {
    padding-right: 48px;
}

.auth-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}

.auth-toggle-password:hover {
    color: #374151;
    background: rgba(0, 0, 0, 0.04);
}

.auth-error {
    display: block;
    margin-top: 6px;
    padding-left: 4px;
    font-size: 12px;
    color: #dc2626;
}

.auth-forgot {
    display: block;
    text-align: right;
    margin: 4px 0 22px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
}

.auth-forgot:hover {
    color: var(--brand-blue);
    text-decoration: none;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -12px 0 18px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
}

.auth-remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--brand-blue);
    cursor: pointer;
}

.auth-submit {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(0, 74, 141, 0.35);
}

.auth-submit:hover {
    background: linear-gradient(135deg, var(--brand-blue-light), var(--brand-blue));
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 74, 141, 0.4);
}

.auth-submit:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .auth-brand {
        left: 20px;
        top: 20px;
    }

    .auth-glass-card {
        padding: 32px 24px 28px;
        border-radius: 20px;
    }

    .auth-card-title {
        font-size: 20px;
    }

    .auth-card-desc {
        font-size: 13px;
    }
}
