/*
|--------------------------------------------------------------------------
| Afri360 Support Desk - Authentication Design
|--------------------------------------------------------------------------
*/

:root {
    --auth-green: #17be70;
    --auth-green-dark: #079a56;
    --auth-green-light: #39da8c;

    --auth-background: #07100c;
    --auth-panel: #0c1812;
    --auth-input: #0a1510;

    --auth-text: #f0f8f3;
    --auth-muted: #91a79a;
    --auth-border: rgba(255, 255, 255, 0.09);

    --auth-danger: #ff6b6b;
    --auth-warning: #ffc857;
    --auth-success: #17be70;
}


/*
|--------------------------------------------------------------------------
| Base
|--------------------------------------------------------------------------
*/

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body.auth-page {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--auth-text);
    background:
        radial-gradient(
            circle at 12% 18%,
            rgba(23, 190, 112, 0.18),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 82%,
            rgba(23, 190, 112, 0.11),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #050c08,
            #0b1811 50%,
            #06100b
        );
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.auth-page::before {
    content: "";
    position: fixed;
    width: 420px;
    height: 420px;
    top: -250px;
    right: -170px;
    border: 65px solid rgba(23, 190, 112, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

.auth-page::after {
    content: "";
    position: fixed;
    width: 320px;
    height: 320px;
    left: -210px;
    bottom: -190px;
    border: 50px solid rgba(23, 190, 112, 0.04);
    border-radius: 50%;
    pointer-events: none;
}


/*
|--------------------------------------------------------------------------
| Layout
|--------------------------------------------------------------------------
*/

.auth-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 28px 16px;
}

.auth-container {
    width: 100%;
    max-width: 1080px;
    margin: auto;
    overflow: hidden;
    border: 1px solid var(--auth-border);
    border-radius: 28px;
    background: rgba(10, 22, 15, 0.94);
    box-shadow:
        0 35px 95px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
}

.auth-row {
    min-height: 680px;
}


/*
|--------------------------------------------------------------------------
| Branding Panel
|--------------------------------------------------------------------------
*/

.auth-brand-panel {
    position: relative;
    height: 100%;
    min-height: 680px;
    overflow: hidden;
    padding: 55px 46px;
    background:
        linear-gradient(
            145deg,
            rgba(23, 190, 112, 0.24),
            rgba(7, 22, 14, 0.97)
        );
}

.auth-brand-panel::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    top: -120px;
    left: -110px;
    border: 45px solid rgba(23, 190, 112, 0.07);
    border-radius: 50%;
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    right: -180px;
    bottom: -180px;
    border: 60px solid rgba(23, 190, 112, 0.06);
    border-radius: 50%;
}

.auth-brand-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.auth-logo {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    border-radius: 18px;
    color: #031009;
    background:
        linear-gradient(
            135deg,
            var(--auth-green-light),
            var(--auth-green)
        );
    box-shadow:
        0 15px 38px rgba(23, 190, 112, 0.3);
    font-size: 27px;
}

.auth-brand-title {
    max-width: 420px;
    margin: 0;
    font-size: clamp(32px, 4vw, 47px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.12;
}

.auth-brand-title span {
    color: var(--auth-green);
}

.auth-brand-description {
    max-width: 400px;
    margin-top: 20px;
    color: #b1c5b9;
    font-size: 15px;
    line-height: 1.75;
}

.auth-benefits {
    display: grid;
    gap: 15px;
    margin-top: 38px;
}

.auth-benefit {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #d4e3da;
    font-size: 14px;
}

.auth-benefit-icon {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: var(--auth-green);
    background: rgba(23, 190, 112, 0.12);
}

.auth-company {
    margin-top: auto;
    padding-top: 35px;
    color: #71867a;
    font-size: 12px;
    letter-spacing: 0.3px;
}


/*
|--------------------------------------------------------------------------
| Form Panel
|--------------------------------------------------------------------------
*/

.auth-form-panel {
    min-height: 680px;
    display: flex;
    align-items: center;
    padding: 50px 58px;
    background: rgba(8, 18, 12, 0.82);
}

.auth-form-container {
    width: 100%;
    max-width: 440px;
    margin: auto;
}

.auth-mobile-logo {
    display: none;
    margin-bottom: 25px;
}

.auth-heading {
    margin: 0 0 8px;
    color: var(--auth-text);
    font-size: 30px;
    font-weight: 780;
    letter-spacing: -0.6px;
}

.auth-subheading {
    margin-bottom: 30px;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.6;
}


/*
|--------------------------------------------------------------------------
| Form Controls
|--------------------------------------------------------------------------
*/

.auth-form .form-label {
    margin-bottom: 8px;
    color: #c9d9cf;
    font-size: 13px;
    font-weight: 650;
}

.auth-input-group {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 17px;
    color: #6e8478;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-input-group .form-control {
    min-height: 52px;
    padding: 12px 48px;
    color: #f5fbf7;
    border: 1px solid var(--auth-border);
    border-radius: 13px;
    outline: 0;
    background: var(--auth-input);
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.auth-input-group .form-control::placeholder {
    color: #607369;
}

.auth-input-group .form-control:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.auth-input-group .form-control:focus {
    color: #ffffff;
    border-color: var(--auth-green);
    background: #0d1b14;
    box-shadow:
        0 0 0 0.23rem
        rgba(23, 190, 112, 0.13);
}

.auth-password-toggle {
    position: absolute;
    z-index: 5;
    top: 50%;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 9px;
    color: #789084;
    background: transparent;
    transform: translateY(-50%);
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.auth-password-toggle:hover {
    color: var(--auth-green);
    background: rgba(23, 190, 112, 0.08);
}

.auth-link {
    color: var(--auth-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: var(--auth-green-light);
}

.auth-form .form-check-input {
    border-color: #526b5e;
    background-color: var(--auth-input);
}

.auth-form .form-check-input:checked {
    border-color: var(--auth-green);
    background-color: var(--auth-green);
}

.auth-form .form-check-label {
    color: #91a69a;
    font-size: 13px;
}


/*
|--------------------------------------------------------------------------
| Buttons
|--------------------------------------------------------------------------
*/

.auth-submit-button {
    min-height: 52px;
    border: 0;
    border-radius: 13px;
    color: #031008;
    background:
        linear-gradient(
            135deg,
            var(--auth-green-light),
            var(--auth-green-dark)
        );
    box-shadow:
        0 15px 32px rgba(23, 190, 112, 0.2);
    font-size: 14px;
    font-weight: 760;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.auth-submit-button:hover {
    color: #031008;
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow:
        0 18px 38px rgba(23, 190, 112, 0.26);
}

.auth-submit-button:active {
    transform: translateY(0);
}

.auth-submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}


/*
|--------------------------------------------------------------------------
| Alerts
|--------------------------------------------------------------------------
*/

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 13px;
    line-height: 1.55;
}

.auth-alert i {
    margin-top: 3px;
}

.auth-alert-danger {
    color: #ffb9b9;
    border-color: rgba(255, 107, 107, 0.2);
    background: rgba(255, 107, 107, 0.1);
}

.auth-alert-success {
    color: #a8f0ca;
    border-color: rgba(23, 190, 112, 0.2);
    background: rgba(23, 190, 112, 0.1);
}

.auth-alert-warning {
    color: #ffe09a;
    border-color: rgba(255, 200, 87, 0.2);
    background: rgba(255, 200, 87, 0.1);
}

.auth-alert-info {
    color: #b9dfff;
    border-color: rgba(88, 166, 255, 0.2);
    background: rgba(88, 166, 255, 0.1);
}


/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

.auth-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 25px;
    color: #657a6e;
    font-size: 12px;
}

.auth-footer {
    margin-top: 35px;
    color: #566b5f;
    text-align: center;
    font-size: 12px;
}


/*
|--------------------------------------------------------------------------
| Loading State
|--------------------------------------------------------------------------
*/

.auth-button-loader {
    display: none;
}

.auth-submit-button.is-loading
.auth-button-text {
    display: none;
}

.auth-submit-button.is-loading
.auth-button-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}


/*
|--------------------------------------------------------------------------
| Responsive Design
|--------------------------------------------------------------------------
*/

@media (max-width: 991.98px) {
    .auth-container {
        max-width: 580px;
    }

    .auth-row,
    .auth-form-panel {
        min-height: auto;
    }

    .auth-brand-column {
        display: none;
    }

    .auth-form-panel {
        padding: 48px 42px;
    }

    .auth-mobile-logo {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .auth-mobile-logo .auth-logo {
        width: 51px;
        height: 51px;
        margin: 0;
        border-radius: 15px;
        font-size: 22px;
    }

    .auth-mobile-brand-name {
        margin: 0;
        font-size: 18px;
        font-weight: 750;
    }
}

@media (max-width: 575.98px) {
    .auth-wrapper {
        align-items: flex-start;
        padding: 12px 8px;
    }

    .auth-container {
        border-radius: 20px;
    }

    .auth-form-panel {
        padding: 34px 21px;
    }

    .auth-heading {
        font-size: 26px;
    }

    .auth-subheading {
        margin-bottom: 25px;
    }

    .auth-input-group .form-control {
        min-height: 50px;
    }
}