:root {
    --cj-primary: #0055FF;
    --cj-primary-dark: #0044cc;
    --cj-text: #1a1a2e;
    --cj-text-muted: #6c757d;
    --cj-border: #e2e8f0;
    --cj-surface: #ffffff;
    --cj-brand-overlay: rgba(0, 21, 80, 0.82);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.auth-split-body {
    margin: 0;
    font-family: 'Inter', 'Work Sans', 'Open Sans', sans-serif;
    color: var(--cj-text);
    background: var(--cj-surface);
    min-height: 100vh;
}

.auth-split {
    display: flex;
    min-height: 100vh;
}

/* Brand panel */
.auth-split__brand {
    flex: 0 0 44%;
    max-width: 44%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3.5rem;
    background-color: var(--cj-primary);
    background-image:
        linear-gradient(var(--cj-brand-overlay), var(--cj-brand-overlay)),
        url('/home/assets/images/hero/hero-one.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}

.auth-brand__logo {
    margin-bottom: 2.5rem;
}

.auth-brand__logo a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    line-height: 0;
}

.auth-brand__logo img {
    height: 56px;
    width: auto;
}

.auth-brand__headline {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 1rem;
}

.auth-brand__subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.92;
    margin: 0 0 2rem;
    max-width: 26rem;
}

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

.auth-brand__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.auth-brand__features i {
    flex-shrink: 0;
    margin-top: 0.15rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.auth-brand__footer {
    margin-top: auto;
    padding-top: 2.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Form panel */
.auth-split__form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 2rem;
    overflow-y: auto;
    background: #f8fafc;
}

.auth-form__card {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    background: var(--cj-surface);
    border-radius: 12px;
    border: 1px solid var(--cj-border);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    padding: 2rem 2rem 1.75rem;
}

.auth-form__header {
    margin-bottom: 1.75rem;
}

.auth-form__header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: var(--cj-text);
}

.auth-form__header p {
    margin: 0;
    color: var(--cj-text-muted);
    font-size: 0.925rem;
}

.auth-form__section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--cj-border);
}

.auth-form__section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.auth-form__section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cj-primary);
    margin: 0 0 1.1rem;
}

.auth-form__section-title i {
    font-size: 1rem;
}

.auth-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-form__field {
    margin-bottom: 1rem;
}

.auth-form__field:last-child {
    margin-bottom: 0;
}

.auth-form__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cj-text);
    margin-bottom: 0.35rem;
}

.auth-form__hint {
    display: block;
    font-size: 0.75rem;
    color: var(--cj-text-muted);
    margin-top: 0.25rem;
}

.auth-form__card .form-control,
.auth-form__card .form-select {
    border-radius: 8px;
    border-color: var(--cj-border);
    font-size: 0.925rem;
    padding: 0.55rem 0.85rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-form__card .form-control:focus,
.auth-form__card .form-select:focus {
    border-color: var(--cj-primary);
    box-shadow: 0 0 0 3px rgba(0, 85, 255, 0.12);
}

.auth-form__card .form-check-label {
    font-size: 0.875rem;
    color: var(--cj-text-muted);
}

.auth-form__card .form-check-label a {
    color: var(--cj-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-form__card .form-check-label a:hover {
    text-decoration: underline;
}

.auth-form__submit {
    margin-top: 1.5rem;
}

.auth-form__submit .btn-primary {
    background-color: var(--cj-primary);
    border-color: var(--cj-primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.auth-form__submit .btn-primary:hover,
.auth-form__submit .btn-primary:focus {
    background-color: var(--cj-primary-dark);
    border-color: var(--cj-primary-dark);
}

.auth-form__footer {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--cj-text-muted);
}

.auth-form__footer a {
    color: var(--cj-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-form__footer a:hover {
    text-decoration: underline;
}

/* Password toggle */
.auth-pass-inputgroup {
    position: relative;
}

.auth-pass-inputgroup .form-control {
    padding-right: 2.75rem;
}

.auth-pass-inputgroup .password-toggle-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
    z-index: 4;
}

.password-toggle-btn:focus {
    box-shadow: none;
}

/* Responsive */
@media (max-width: 991.98px) {
    .auth-split {
        flex-direction: column;
    }

    .auth-split__brand {
        flex: none;
        max-width: 100%;
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .auth-brand__logo {
        margin-bottom: 1.25rem;
    }

    .auth-brand__logo img {
        height: 44px;
    }

    .auth-brand__headline {
        font-size: 1.4rem;
    }

    .auth-brand__subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .auth-brand__features {
        display: none;
    }

    .auth-brand__footer {
        display: none;
    }

    .auth-split__form {
        padding: 1.5rem 1rem 2rem;
    }

    .auth-form__card {
        padding: 1.5rem 1.25rem;
        border-radius: 10px;
        box-shadow: none;
        border: none;
        background: transparent;
    }

    .auth-form__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .auth-split__brand {
        padding: 1.5rem 1.25rem;
    }

    .auth-split__form {
        padding: 1rem 0.75rem 1.5rem;
    }
}
