:root {
    --login-bg: #08162f;
    --login-bg-2: #123b78;
    --login-surface: rgba(255, 255, 255, 0.96);
    --login-border: rgba(15, 23, 42, 0.08);
    --login-text: #0f172a;
    --login-muted: #64748b;
    --login-shadow: 0 30px 80px rgba(2, 6, 23, 0.24);
}

.login-shell {
    min-height: 100vh;
    padding: 20px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top left, rgba(18, 59, 120, 0.10), transparent 26%),
        radial-gradient(circle at 85% 18%, rgba(114, 196, 10, 0.08), transparent 22%),
        linear-gradient(180deg, #f9fbfe 0%, #edf2f8 100%);
}

.login-panel {
    width: min(480px, 100%);
    padding: 0;
}

.login-form-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.10);
    padding: 22px 26px 22px;
    backdrop-filter: blur(10px);
}

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

.login-mark {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-mark__icon {
    width: min(100%, 330px);
    aspect-ratio: 3 / 2;
    height: auto;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: hidden;
    flex: 0 0 auto;
}

.login-mark__icon--top {
    width: min(100%, 330px);
    aspect-ratio: 3 / 2;
    height: auto;
    border-radius: 0;
}

.login-mark__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.login-form-head {
    margin-bottom: 12px;
    text-align: center;
}

.login-form-head h2 {
    margin: 0 0 8px;
    color: var(--login-text);
    font-size: clamp(1.7rem, 2.4vw, 2rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.login-form-head p {
    margin: 0;
    color: var(--login-muted);
    line-height: 1.45;
    font-size: 0.97rem;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.login-alert--success {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
}

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

.login-form {
    display: grid;
    gap: 14px;
    margin-top: 6px;
}

.login-field {
    display: grid;
    gap: 8px;
}

.login-field > span {
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
}

.login-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 15px;
    border-radius: 15px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.login-input-wrap:focus-within {
    border-color: rgba(18, 59, 120, 0.32);
    background: #fcfdff;
    box-shadow: 0 0 0 4px rgba(18, 59, 120, 0.08), 0 2px 10px rgba(15, 23, 42, 0.04);
    transform: translateY(-1px);
}

.login-input-wrap i {
    color: #94a3b8;
    font-size: 1rem;
}

.login-input-wrap input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--login-text);
    font-size: 0.98rem;
}

.login-input-wrap input::placeholder {
    color: #94a3b8;
}

.login-submit {
    margin-top: 2px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, #0b1735 0%, #09132b 100%);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 14px 24px rgba(8, 22, 47, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.login-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 18px 28px rgba(18, 59, 120, 0.18);
}

.login-submit i {
    font-size: 1rem;
}

.login-footer {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #475569;
    font-size: 0.9rem;
}

.login-footer a {
    color: #123b78;
    font-weight: 800;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .login-shell {
        padding: 16px;
    }

    .login-form-card {
        border-radius: 24px;
        padding: 20px 18px 18px;
    }

    .login-mark__icon--top {
        width: min(100%, 290px);
    }
}
