:root {
    --ink: #10243a;
    --ink-soft: #4b5d72;
    --navy: #123552;
    --navy-deep: #0b2438;
    --gold: #c4a35a;
    --gold-soft: #e8d7a8;
    --surface: rgba(255, 255, 255, 0.92);
    --line: rgba(255, 255, 255, 0.28);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body.login-body {
    min-height: 100vh;
    font-family: Manrope, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--navy-deep);
    overflow-x: hidden;
}

.login-hero {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.login-hero-image {
    position: absolute;
    inset: 0;
    background:
        url("https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&w=2000&q=80")
        center/cover no-repeat;
    transform: scale(1.06);
    animation: heroDrift 22s ease-in-out infinite alternate;
}

.login-hero-wash {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(11, 36, 56, 0.88) 0%, rgba(11, 36, 56, 0.62) 42%, rgba(18, 53, 82, 0.78) 100%),
        linear-gradient(180deg, rgba(11, 36, 56, 0.2) 0%, rgba(11, 36, 56, 0.85) 100%);
}

.login-hero-glow {
    position: absolute;
    inset: auto -10% -20% auto;
    width: 55vw;
    height: 55vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 163, 90, 0.22), transparent 68%);
    filter: blur(8px);
    animation: glowPulse 8s ease-in-out infinite alternate;
}

.login-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 28px;
    padding: 28px 0 22px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    animation: riseIn 0.7s ease both;
}

.login-brand-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.login-brand-name {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.login-brand-place {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-soft);
}

.login-main {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    align-items: center;
}

.login-intro {
    color: #fff;
    max-width: 520px;
    animation: riseIn 0.85s ease both;
}

.login-kicker {
    margin: 0 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(232, 215, 168, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: var(--gold-soft);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-intro h1 {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1.05;
    font-weight: 700;
    max-width: 11ch;
}

.login-lead {
    margin: 16px 0 0;
    max-width: 38ch;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

.login-card {
    width: 100%;
    max-width: 440px;
    justify-self: end;
    padding: 30px 32px 28px;
    border-radius: 28px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 30px 80px rgba(8, 24, 40, 0.35),
        0 2px 0 rgba(255, 255, 255, 0.65) inset;
    backdrop-filter: blur(18px);
    animation: cardIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.login-card-top {
    margin-bottom: 8px;
}

.login-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(18, 53, 82, 0.08);
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
}

.login-card-top h2 {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 34px;
    line-height: 1.1;
    color: var(--ink);
}

.login-card-top p {
    margin: 8px 0 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.55;
}

.login-alert {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    font-weight: 600;
}

.login-alert.error {
    background: #fde8e8;
    color: #9b1c1c;
}

.login-form {
    margin-top: 22px;
    display: grid;
    gap: 16px;
}

.login-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #3d4f63;
}

.login-input {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid #d5dee8;
    border-radius: 16px;
    background: #f7f9fc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-input:focus-within {
    background: #fff;
    border-color: #9eb4c8;
    box-shadow: 0 0 0 4px rgba(18, 53, 82, 0.1);
}

.login-input > i {
    color: #7b8ea3;
    width: 18px;
    text-align: center;
}

.login-input input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    padding: 14px 0;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
}

.password-toggle {
    border: 0;
    background: transparent;
    color: #7b8ea3;
    cursor: pointer;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-submit {
    margin-top: 8px;
    width: 100%;
    border: 0;
    border-radius: 16px;
    padding: 15px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #174866 0%, #0f2f45 100%);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(15, 47, 69, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 47, 69, 0.34);
}

.login-submit i {
    transition: transform 0.2s ease;
}

.login-submit:hover i {
    transform: translateX(3px);
}

.login-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 600;
    animation: riseIn 1s ease both;
}

@keyframes heroDrift {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.1) translate3d(-1.2%, -1%, 0); }
}

@keyframes glowPulse {
    from { opacity: 0.55; transform: translate3d(0, 0, 0); }
    to { opacity: 0.95; transform: translate3d(-4%, -3%, 0); }
}

@keyframes riseIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(28px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 920px) {
    .login-shell {
        width: min(100% - 28px, 560px);
        gap: 22px;
        padding: 20px 0 18px;
    }

    .login-main {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .login-intro h1 {
        max-width: none;
        font-size: clamp(34px, 9vw, 44px);
    }

    .login-card {
        justify-self: stretch;
        max-width: none;
        padding: 24px;
        border-radius: 24px;
    }

    .login-brand-logo {
        width: 54px;
        height: 54px;
    }
}
