:root {
    --primary: #008f8c;
    --primary-dark: #006f6c;
    --primary-light: #e9f8f7;
    --text: #17202a;
    --muted: #718096;
    --border: #e5e7eb;
    --white: #ffffff;
    --danger: #dc3545;
    --success: #198754;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #f4f8f8;
    color: var(--text);
}

.auth-wrapper {
    min-height: 100vh;
    padding: 30px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 1150px;
    min-height: 680px;

    display: grid;
    grid-template-columns: 43% 57%;

    background: var(--white);

    border-radius: 26px;

    overflow: hidden;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, .10);
}

.auth-left {
    padding: 55px;

    color: white;

    background:
        linear-gradient(
            145deg,
            #008f8c,
            #006e6b
        );

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-box {
    margin-bottom: 55px;
}

.brand-icon {
    width: 58px;
    height: 58px;

    border-radius: 16px;

    background: rgba(255,255,255,.16);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 27px;

    margin-bottom: 20px;
}

.brand-box h1 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 15px;
}

.brand-box p {
    color: rgba(255,255,255,.82);
    line-height: 1.7;
    max-width: 380px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-item > i {
    width: 42px;
    height: 42px;

    border-radius: 12px;

    background: rgba(255,255,255,.13);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 19px;
}

.feature-item strong {
    display: block;
    margin-bottom: 4px;
}

.feature-item span {
    color: rgba(255,255,255,.70);
    font-size: 13px;
}

.auth-right {
    padding: 55px 65px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form,
.register-form {
    width: 100%;
    max-width: 470px;
}

.form-header {
    margin-bottom: 28px;
}

.small-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--primary);
}

.form-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 7px 0;
}

.form-header p {
    color: var(--muted);
    margin: 0;
}

.form-label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.input-icon {
    position: relative;
}

.input-icon > i {
    position: absolute;

    left: 16px;
    top: 50%;

    transform: translateY(-50%);

    color: #87919c;

    z-index: 2;
}

.input-icon .form-control {
    padding-left: 45px;
}

.form-control {
    height: 52px;

    border-radius: 12px;

    border: 1px solid var(--border);

    box-shadow: none;

    transition: .2s;
}

.form-control:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px
        rgba(0,143,140,.10);
}

textarea.form-control {
    height: auto;
}

.password-toggle {
    position: absolute;

    right: 12px;
    top: 50%;

    transform: translateY(-50%);

    border: 0;

    background: transparent;

    color: #87919c;

    z-index: 3;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 17px 0 24px;

    font-size: 13px;
}

.form-options a,
.register-link a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.remember-check {
    display: flex;
    gap: 7px;
    align-items: center;
}

.btn-primary-custom {
    min-height: 52px;

    border: 0;

    border-radius: 12px;

    padding: 12px 20px;

    background: var(--primary);

    color: white;

    font-weight: 700;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    transition: .2s;

    text-decoration: none;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
}

.divider {
    margin: 28px 0;

    display: flex;
    align-items: center;

    color: #a0a8b0;

    font-size: 11px;
}

.divider::before,
.divider::after {
    content: "";

    height: 1px;

    flex: 1;

    background: var(--border);
}

.divider span {
    margin: 0 14px;
}

.register-link {
    text-align: center;

    color: var(--muted);

    font-size: 14px;
}

.mobile-brand {
    display: none;
}


/*
|--------------------------------------------------------------------------
| Registration Progress
|--------------------------------------------------------------------------
*/

.progress-wrapper {
    display: flex;
    align-items: flex-start;

    margin-bottom: 40px;
}

.progress-step {
    min-width: 70px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 7px;

    color: #a1a9b1;

    font-size: 11px;
    font-weight: 700;
}

.step-circle {
    width: 34px;
    height: 34px;

    border-radius: 50%;

    border: 2px solid #dfe4e7;

    background: white;

    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-step.active,
.progress-step.completed {
    color: var(--primary);
}

.progress-step.active .step-circle,
.progress-step.completed .step-circle {
    border-color: var(--primary);

    background: var(--primary);

    color: white;
}

.step-line {
    flex: 1;

    height: 2px;

    background: #e4e8ea;

    margin-top: 17px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.agreement {
    margin: 18px 0 25px;

    font-size: 13px;

    color: var(--muted);
}

.agreement label {
    display: flex;
    gap: 9px;
    align-items: flex-start;
}

.agreement input {
    margin-top: 3px;
}

.agreement a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.btn-back {
    border: 0;

    background: transparent;

    color: var(--muted);

    font-weight: 700;

    padding: 12px 10px;
}

.button-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}


/*
|--------------------------------------------------------------------------
| OTP
|--------------------------------------------------------------------------
*/

.otp-box {
    display: flex;
    justify-content: center;
    gap: 9px;

    margin: 35px 0;
}

.otp-input {
    width: 52px;
    height: 58px;

    border: 1px solid var(--border);

    border-radius: 12px;

    text-align: center;

    font-size: 23px;
    font-weight: 800;

    outline: none;
}

.otp-input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px
        rgba(0,143,140,.10);
}

.btn-link-custom {
    border: 0;

    background: transparent;

    color: var(--muted);

    font-size: 13px;
}

.btn-link-custom strong {
    color: var(--primary);
}


/*
|--------------------------------------------------------------------------
| Theme
|--------------------------------------------------------------------------
*/

.theme-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;
}

.theme-card {
    cursor: pointer;

    border: 2px solid var(--border);

    border-radius: 12px;

    padding: 8px;

    text-align: center;

    transition: .2s;

    position: relative;
}

.theme-card input {
    position: absolute;
    opacity: 0;
}

.theme-card.selected {
    border-color: var(--primary);

    background: var(--primary-light);
}

.theme-preview {
    height: 50px;

    border-radius: 8px;

    margin-bottom: 7px;
}

.theme-card span {
    font-size: 11px;
    font-weight: 700;
}

.theme-teal {
    background:
        linear-gradient(
            135deg,
            #008f8c,
            #005f5c
        );
}

.theme-purple {
    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #4c1d95
        );
}

.theme-sunset {
    background:
        linear-gradient(
            135deg,
            #ff7a59,
            #e63946
        );
}

.theme-dark {
    background:
        linear-gradient(
            135deg,
            #111827,
            #374151
        );
}


/*
|--------------------------------------------------------------------------
| Loading Button
|--------------------------------------------------------------------------
*/

.btn-primary-custom:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.btn-primary-custom .spinner-border {
    width: 17px;
    height: 17px;
}


/*
|--------------------------------------------------------------------------
| Alerts
|--------------------------------------------------------------------------
*/

.alert {
    border: 0;

    border-radius: 11px;

    font-size: 13px;
}


/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 991px) {

    .auth-wrapper {
        padding: 20px;
    }

    .auth-container {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        padding: 35px;
    }

    .mobile-brand {
        display: flex;

        align-items: center;

        gap: 10px;

        margin-bottom: 30px;

        color: var(--text);
    }

    .mobile-brand .brand-icon {
        width: 42px;
        height: 42px;

        margin: 0;

        background: var(--primary-light);

        color: var(--primary);

        font-size: 19px;
    }
}

@media (max-width: 576px) {

    .auth-wrapper {
        padding: 0;
    }

    .auth-container {
        min-height: 100vh;

        border-radius: 0;

        box-shadow: none;
    }

    .auth-right {
        padding: 25px 18px;
    }

    .form-header h2 {
        font-size: 27px;
    }

    .otp-input {
        width: 44px;
        height: 52px;
    }

    .otp-box {
        gap: 6px;
    }

    .theme-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}

@media (max-width: 370px) {

    .otp-input {
        width: 39px;
        height: 48px;
    }

    .otp-box {
        gap: 4px;
    }

    .button-row {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .button-row .btn-primary-custom {
        width: 100%;
    }
}