:root {
    --syn-navy: #0d1b35;
    --syn-navy-mid: #152d52;
    --syn-green: #3bbf8b;
    --syn-green-dark: #2ea373;
}

html,
body {
    min-height: 100%;
}

body.syn-login-page {
    min-height: 100vh;
    background: #f8fafc;
}

.syn-login-shell {
    min-height: 100vh;
}

.syn-login-brand {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, var(--syn-navy) 0%, var(--syn-navy-mid) 100%);
    color: #fff;
}

.syn-login-brand::before,
.syn-login-brand::after {
    position: absolute;
    content: '';
    border-radius: 50%;
    pointer-events: none;
}

.syn-login-brand::before {
    width: 480px;
    height: 480px;
    top: -140px;
    right: -140px;
    background: rgba(59, 191, 139, .07);
}

.syn-login-brand::after {
    width: 340px;
    height: 340px;
    bottom: -100px;
    left: -80px;
    background: rgba(59, 191, 139, .05);
}

.syn-login-brand-content {
    position: relative;
    z-index: 1;
    width: min(100%, 400px);
}

.syn-login-logo {
    display: block;
    max-width: 220px;
    max-height: 58px;
    width: auto;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 1.5rem;
}

.syn-login-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .85rem;
    border: 1px solid rgba(59, 191, 139, .3);
    border-radius: 999px;
    background: rgba(59, 191, 139, .15);
    color: var(--syn-green);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.syn-login-tagline {
    margin: 1.5rem 0 .75rem;
    color: #fff;
    font-size: clamp(1.7rem, 2.2vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
}

.syn-login-subtitle {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, .64);
    font-size: .95rem;
    line-height: 1.6;
}

.syn-login-feature {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .78);
    font-size: .875rem;
}

.syn-login-feature:last-child {
    border-bottom: 0;
}

.syn-login-feature-icon {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: rgba(59, 191, 139, .12);
    color: var(--syn-green);
    font-size: 1.15rem;
}

.syn-login-feature strong {
    display: block;
    margin-bottom: .1rem;
    color: #fff;
    font-weight: 600;
}

.syn-login-form-side {
    background: #f8fafc;
}

.syn-login-form-wrap {
    width: min(100%, 430px);
    animation: syn-login-enter .45s ease-out both;
}

.syn-login-card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(13, 27, 53, .1);
}

.syn-login-card .card-title {
    color: var(--syn-navy);
    font-weight: 700;
}

.syn-login-card .form-floating > label {
    color: #6c757d;
}

.syn-login-card .form-control:focus,
.syn-login-card .form-select:focus {
    border-color: var(--syn-green);
    box-shadow: 0 0 0 3px rgba(59, 191, 139, .15);
}

.syn-login-card .input-group .form-control {
    border-right: 0;
}

.syn-login-card .input-group-text {
    background: #fff;
}

.syn-login-card .input-group:focus-within .input-group-text {
    border-color: var(--syn-green);
}

.syn-login-password-toggle {
    color: #6c757d;
    text-decoration: none;
}

.syn-login-password-toggle:hover,
.syn-login-password-toggle:focus {
    color: var(--syn-green-dark);
}

.syn-login-submit {
    border-color: var(--syn-green);
    background: var(--syn-green);
    color: #fff;
    font-weight: 600;
    letter-spacing: .02em;
    transition: background .2s, border-color .2s, box-shadow .2s, transform .15s;
}

.syn-login-submit:hover,
.syn-login-submit:focus-visible {
    border-color: var(--syn-green-dark);
    background: var(--syn-green-dark);
    color: #fff;
    box-shadow: 0 6px 18px rgba(59, 191, 139, .35);
    transform: translateY(-1px);
}

.syn-login-submit:disabled {
    border-color: var(--syn-green);
    background: var(--syn-green);
    opacity: .75;
}

.syn-login-hint {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-bottom: 1rem;
    padding: .75rem .85rem;
    border: 1px solid rgba(13, 110, 253, .18);
    border-radius: 8px;
    background: rgba(13, 110, 253, .06);
    color: #495057;
    font-size: .82rem;
    line-height: 1.45;
}

.syn-login-hint-icon {
    display: inline-flex;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
}

.syn-login-footer {
    color: #6c757d;
    font-size: .78rem;
}

.syn-login-mobile-logo {
    display: none;
    max-width: 190px;
    max-height: 48px;
    object-fit: contain;
}

.syn-login-loading {
    display: none;
    position: fixed;
    z-index: 1080;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: rgba(13, 27, 53, .42);
}

.syn-login-loading.is-visible {
    display: flex;
}

@keyframes syn-login-enter {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991.98px) {
    .syn-login-form-side {
        min-height: 100vh;
        background: #fff;
    }

    .syn-login-mobile-logo {
        display: block;
        margin: 0 auto 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .syn-login-form-wrap,
    .syn-login-submit {
        animation: none;
        transition: none;
    }
}
