.login-page {
    min-height: 100vh;
    background:
        radial-gradient(900px 420px at 0% 0%, rgba(200, 160, 106, 0.10), transparent 60%),
        radial-gradient(820px 360px at 100% 10%, rgba(23, 55, 95, 0.06), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    color: var(--text);
}

.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .72), transparent 28%),
        radial-gradient(circle at 80% 0%, rgba(255, 255, 255, .5), transparent 22%);
}

.login-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.login-shell {
    width: 100%;
    max-width: 460px;
}

.login-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.login-brand img {
    width: 120px;
    height: auto;
    object-fit: contain;
}

.login-card {
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    padding: 34px 30px 28px;
    backdrop-filter: blur(10px);
}

.login-card-top {
    text-align: center;
    margin-bottom: 22px;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .88);
    border: 1px solid var(--border);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.login-badge i {
    font-size: 14px;
}

.login-card h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 5vw, 38px);
    color: var(--primary-color);
    letter-spacing: -.02em;
}

.login-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 15px;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.55;
}

.alert i {
    margin-top: 1px;
    font-size: 16px;
    flex: 0 0 auto;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.login-form {
    margin-top: 8px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
}

.input-wrap {
    position: relative;
}

.input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 15px;
    background: rgba(255, 255, 255, .96);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.input-wrap input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(197, 169, 122, 0.12);
    background: #fff;
}

.field-help {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: color .2s ease;
}

.forgot-link:hover {
    color: var(--accent);
}

.login-submit {
    width: 100%;
    border: none;
    background: var(--primary-color);
    color: #fff;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 14px 28px rgba(23, 55, 95, 0.16);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.login-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(23, 55, 95, 0.18);
}

.login-bottom {
    margin-top: 18px;
    text-align: center;
}

.back-home {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    transition: color .2s ease;
}

.back-home:hover {
    color: var(--accent);
}

@media (max-width: 520px) {
    .login-layout {
        padding: 20px 12px;
    }

    .login-brand img {
        width: 104px;
    }

    .login-card {
        padding: 26px 18px 22px;
        border-radius: 22px;
    }

    .login-card h1 {
        font-size: 28px;
    }

    .field-help {
        justify-content: flex-start;
    }
}