:root {
    --unipalm-primary: #2d499d;
    --unipalm-primary-dark: #1a2f5c;
    --unipalm-accent: #2a7d4f;
}

body {
    background-color: #f0f4f9;
    font-family: "Nunito", sans-serif;
}

#auth {
    min-height: 100vh;
}

#auth > .row {
    min-height: 100vh;
    margin: 0;
}

/* ── Left panel ── */
#auth #auth-left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: #fff;
}

#auth .auth-left-inner {
    width: 100%;
    max-width: 400px;
}

#auth #auth-left .auth-logo {
    margin-bottom: 2.75rem;
    text-align: center;
}

#auth #auth-left .auth-logo a {
    display: inline-block;
}

#auth #auth-left .auth-logo img {
    height: auto;
    width: auto;
    max-height: 130px;
    max-width: 260px;
    object-fit: contain;
}

#auth .auth-form-header {
    margin-bottom: 2rem;
}

#auth #auth-left .auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: #1e2d4d;
    text-align: left;
    letter-spacing: -0.01em;
}

#auth #auth-left .auth-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #7b8799;
    margin-bottom: 0;
    text-align: left;
}

#auth .auth-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4a5568;
    margin-bottom: 0.45rem;
}

#auth #auth-left .form-control-xl {
    border-radius: 0.6rem;
    border: 1.5px solid #e2e8f0;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    font-size: 0.95rem;
    background: #fafbfc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#auth #auth-left .form-control-xl::placeholder {
    color: #b0bac7;
    font-weight: 400;
}

#auth #auth-left .form-control-xl:focus {
    background: #fff;
    border-color: var(--unipalm-primary);
    box-shadow: 0 0 0 3px rgba(45, 73, 157, 0.1);
}

#auth #auth-left .form-control-icon i {
    color: #94a3b8;
    font-size: 1rem;
}

#auth #auth-left .form-control-xl:focus ~ .form-control-icon i,
#auth #auth-left .form-control-xl:focus + .form-control-icon i {
    color: var(--unipalm-primary);
}

#auth .auth-submit {
    background: var(--unipalm-primary);
    border: none;
    border-radius: 0.6rem;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.85rem 1.25rem;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

#auth .auth-submit:hover {
    background: var(--unipalm-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(45, 73, 157, 0.28);
}

#auth #auth-left .alert-danger {
    border: none;
    border-radius: 0.6rem;
    font-size: 0.875rem;
    background: #fef2f2;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

#auth .auth-footer {
    margin-top: 2.75rem;
    text-align: center;
    font-size: 0.8rem;
    color: #b0bac7;
}

/* ── Right panel ── */
#auth #auth-right {
    position: relative;
    height: 100%;
    min-height: 100vh;
    background: linear-gradient(160deg, #1f6b42 0%, #2d499d 55%, var(--unipalm-primary-dark) 100%);
    overflow: hidden;
}

#auth #auth-right::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255, 255, 255, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 10% 90%, rgba(92, 184, 122, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

#auth #auth-right::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    top: -150px;
    right: -100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

#auth .auth-brand-panel {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 100vh;
    padding: 4rem 5rem;
}

#auth .auth-brand-content {
    max-width: 440px;
    color: #fff;
}

#auth .brand-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.7;
    margin-bottom: 0.75rem;
}

#auth .brand-name {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fff;
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

#auth .brand-divider {
    width: 48px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

#auth .brand-tagline {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.75rem;
}

#auth .auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

#auth .auth-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    transition: background 0.2s ease;
}

#auth .auth-features li:hover {
    background: rgba(255, 255, 255, 0.15);
}

#auth .feature-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.1rem;
    color: #fff;
}

#auth .auth-features li div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

#auth .auth-features li strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

#auth .auth-features li span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.4;
}

@media screen and (max-width: 991px) {
    #auth #auth-left {
        min-height: 100vh;
        padding: 2.5rem 1.5rem;
    }

    #auth #auth-left .auth-logo img {
        max-height: 100px;
    }
}
