@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #635bff;
    --primary-dark: #5148e5;
    --primary-light: #eeedff;

    --dark: #171725;
    --text: #272738;
    --muted: #85859a;

    --border: #e7e7ef;
    --background: #f5f6fa;
    --white: #ffffff;

    --radius: 18px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: "Inter", sans-serif;
    background: var(--background);
    color: var(--text);
}


/* =========================
   MAIN CONTAINER
========================= */

.auth-container {
    min-height: 100vh;
    display: flex;
}


/* =========================
   BRAND PANEL
========================= */

.brand-panel {
    width: 43%;
    min-height: 100vh;
    padding: 55px 7%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    position: relative;
    overflow: hidden;

    color: white;

    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(141, 132, 255, .35),
            transparent 28%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(42, 30, 150, .6),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #18182d 0%,
            #29265a 50%,
            #5148b7 100%
        );
}


/* Decorative circles */

.brand-panel::before {
    content: "";
    position: absolute;

    width: 420px;
    height: 420px;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;

    right: -180px;
    top: 22%;
}

.brand-panel::after {
    content: "";
    position: absolute;

    width: 260px;
    height: 260px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;

    left: -130px;
    bottom: 12%;
}


/* =========================
   LOGO
========================= */

.brand-logo,
.mobile-logo {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 24px;
    font-weight: 800;

    position: relative;
    z-index: 2;
}

.brand-logo > span > span,
.mobile-logo > span > span {
    color: #928bff;
}

.logo-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: var(--primary);
    color: white;

    font-size: 23px;

    box-shadow:
        0 8px 25px rgba(99, 91, 255, .4);
}


/* =========================
   BRAND CONTENT
========================= */

.brand-text {
    max-width: 520px;
    margin-top: 80px;

    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-block;

    margin-bottom: 22px;

    color: #aaa5ff;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;
}

.brand-text h1 {
    font-size: clamp(38px, 4vw, 62px);
    line-height: 1.08;
    letter-spacing: -2px;

    margin-bottom: 25px;
}

.brand-text h1 strong {
    color: #928bff;
}

.brand-text p {
    max-width: 470px;

    color: rgba(255,255,255,.68);

    font-size: 16px;
    line-height: 1.8;
}


/* =========================
   FEATURES
========================= */

.features {
    margin-top: 55px;

    display: flex;
    flex-direction: column;
    gap: 22px;

    position: relative;
    z-index: 2;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 43px;
    height: 43px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 12px;

    color: #a9a3ff;
    background: rgba(255,255,255,.08);

    font-size: 21px;
}

.feature h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.feature p {
    color: rgba(255,255,255,.5);
    font-size: 12px;
}

.brand-footer {
    position: relative;
    z-index: 2;

    color: rgba(255,255,255,.4);
    font-size: 12px;
}


/* =========================
   AUTH PANEL
========================= */

.auth-panel {
    width: 57%;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 50px 7%;

    background: #f7f7fa;
}


/* =========================
   AUTH CARD
========================= */

.auth-card {
    width: 100%;
    max-width: 570px;

    position: relative;
}


/* =========================
   FORMS
========================= */

.auth-form {
    background: var(--white);

    padding: 42px;

    border-radius: 24px;

    border: 1px solid rgba(0,0,0,.04);

    box-shadow:
        0 25px 70px rgba(32, 32, 58, .08);

    animation: formIn .5s ease;
}

@keyframes formIn {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Register hidden */

.register-form {
    display: none;
}

.show-register .login-form {
    display: none;
}

.show-register .register-form {
    display: block;
}


/* =========================
   FORM HEADER
========================= */

.form-header {
    margin-bottom: 32px;
}

.form-badge {
    display: inline-block;

    padding: 7px 11px;

    margin-bottom: 14px;

    border-radius: 8px;

    background: var(--primary-light);
    color: var(--primary);

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .6px;
}

.form-header h2 {
    color: var(--dark);

    font-size: 29px;
    line-height: 1.2;

    margin-bottom: 9px;
}

.form-header p {
    color: var(--muted);

    font-size: 14px;
    line-height: 1.6;
}


/* =========================
   FORM FIELD
========================= */

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;

    margin-bottom: 8px;

    color: #3c3c4d;

    font-size: 12px;
    font-weight: 600;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 8px;
}

.label-row label {
    margin: 0;
}

.label-row a {
    color: var(--primary);

    font-size: 11px;
    font-weight: 600;

    text-decoration: none;
}

.label-row a:hover {
    text-decoration: underline;
}


/* =========================
   INPUT
========================= */

.input-box {
    height: 52px;

    display: flex;
    align-items: center;

    position: relative;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: #fff;

    transition: .2s ease;
}

.input-box > i {
    margin-left: 16px;

    color: #a2a2b4;

    font-size: 19px;

    transition: .2s ease;
}

.input-box input {
    width: 100%;
    height: 100%;

    padding: 0 14px;

    border: 0;
    outline: 0;

    color: var(--text);

    background: transparent;

    font-family: inherit;
    font-size: 13px;
}

.input-box input::placeholder {
    color: #b4b4c2;
}

.input-box:focus-within {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(99,91,255,.08);
}

.input-box:focus-within > i {
    color: var(--primary);
}


/* =========================
   PASSWORD
========================= */

.password-toggle {
    width: 45px;
    height: 100%;

    display: grid;
    place-items: center;

    border: 0;
    background: transparent;

    color: #aaaaba;

    cursor: pointer;

    font-size: 18px;
}

.password-toggle:hover {
    color: var(--primary);
}



/* =========================
   TWO COLUMN FORM
========================= */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 14px;
}

.input-box select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 30px;
    padding-left: 10px;
}

.input-box select:invalid {
    color: #777;
}

.input-box select option {
    color: #222;
    background: #fff;
}


/* Dropdown arrow */

.select-box {
    position: relative;
}

.select-box::after {
    content: "\e9d0";
    font-family: "boxicons";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}


/* Forgot password form */

.forgot-password-form {
    display: none;
}


/* Show forgot password */

.auth-container.show-forgot-password
.forgot-password-form {
    display: block;
}

.auth-container.show-forgot-password
.login-form,
.auth-container.show-forgot-password
.register-form {
    display: none;
}

/* =========================
   BUTTONS
========================= */

.primary-btn,
.secondary-btn {
    width: 100%;
    height: 52px;

    border-radius: 11px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition: .2s ease;
}

.primary-btn {
    margin-top: 8px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    border: 0;

    color: white;

    background: linear-gradient(
        135deg,
        #6d65ff,
        #554ce8
    );

    box-shadow:
        0 10px 25px rgba(99,91,255,.22);
}

.primary-btn i {
    font-size: 19px;

    transition: transform .2s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(99,91,255,.3);
}

.primary-btn:hover i {
    transform: translateX(4px);
}

.primary-btn:active {
    transform: translateY(0);
}


/* Secondary */

.secondary-btn {
    border: 1px solid var(--border);

    background: white;

    color: var(--text);
}

.secondary-btn:hover {
    border-color: var(--primary);

    color: var(--primary);

    background: #fafaff;
}


/* =========================
   DIVIDER
========================= */

.divider {
    display: flex;
    align-items: center;

    gap: 13px;

    margin: 24px 0 14px;

    color: #aaaaba;

    font-size: 11px;
}

.divider::before,
.divider::after {
    content: "";

    height: 1px;
    flex: 1;

    background: var(--border);
}


/* =========================
   MOBILE LOGO
========================= */

.mobile-logo {
    display: none;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {

    .brand-panel {
        width: 38%;
        padding: 40px;
    }

    .auth-panel {
        width: 62%;
        padding: 35px;
    }

    .brand-text h1 {
        font-size: 40px;
    }

}


@media (max-width: 760px) {

    .auth-container {
        display: block;
    }

    .brand-panel {
        display: none;
    }

    .auth-panel {
        width: 100%;
        min-height: 100vh;

        padding: 25px 16px;

        align-items: flex-start;
    }

    .auth-card {
        max-width: 100%;
        margin-top: 20px;
    }

    .auth-form {
        padding: 28px 22px;

        border-radius: 20px;
    }

    .mobile-logo {
        display: flex;

        margin-bottom: 32px;

        font-size: 21px;
    }

    .mobile-logo .logo-icon {
        width: 38px;
        height: 38px;

        font-size: 20px;
    }

    .form-header h2 {
        font-size: 25px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

}


@media (max-width: 420px) {

    .auth-panel {
        padding: 15px 10px;
    }

    .auth-form {
        padding: 25px 18px;
    }

    .form-header h2 {
        font-size: 23px;
    }

}
