﻿/* =========================================================
           RESET
        ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}


/* =========================================================
           BODY
        ========================================================= */

body {
    min-height: 100vh;
    background: radial-gradient( circle at 5% 10%, #e9edff, transparent 28% ), radial-gradient( circle at 95% 90%, #e5f6ff, transparent 28% ), #f5f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    color: #172033;
}


/* =========================================================
           MAIN CONTAINER
        ========================================================= */

.auth-container {
    width: 100%;
    max-width: 1080px;
    min-height: 680px;
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 42% 58%;
    box-shadow: 0 30px 80px rgba(20, 35, 70, 0.13);
}


/* =========================================================
           LEFT BRAND SECTION
        ========================================================= */

.brand-section {
    position: relative;
    overflow: hidden;
    padding: 52px;
    color: #ffffff;
    background: radial-gradient( circle at 15% 12%, rgba(99, 102, 241, 0.40), transparent 28% ), radial-gradient( circle at 90% 85%, rgba(14, 165, 233, 0.24), transparent 30% ), linear-gradient( 145deg, #0f172a, #172554 55%, #111827 );
}


    .brand-section::before {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        border: 1px solid rgba(255,255,255,.07);
        border-radius: 50%;
        right: -220px;
        top: 80px;
    }


    .brand-section::after {
        content: "";
        position: absolute;
        width: 550px;
        height: 550px;
        border: 1px solid rgba(255,255,255,.05);
        border-radius: 50%;
        left: -350px;
        bottom: -300px;
    }


.brand-content {
    position: relative;
    z-index: 2;
}


/* =========================================================
           LOGO
        ========================================================= */

.brand-logo {
    /*width: 115px;
    height: 115px;*/
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    /*background: #ffffff;*/
    border-radius: 26px;
    margin-bottom: 28px;
    box-shadow: 0 25px 60px rgba(0,0,0,.30);
    animation: logoFloat 4s ease-in-out infinite;
}

.company-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.logo {
    width: 47px;
    height: 47px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient( 135deg, #6366f1, #38bdf8 );
    box-shadow: 0 10px 30px rgba(56,189,248,.25);
}


.brand-name {
    font-size: 20px;
    font-weight: 700;
}


/* =========================================================
           BRAND TEXT
        ========================================================= */

.brand-title {
    font-size: 39px;
    line-height: 1.12;
    letter-spacing: -1.2px;
    max-width: 390px;
    margin-bottom: 20px;
}


.brand-description {
    max-width: 390px;
    color: rgba(255,255,255,.62);
    font-size: 14px;
    line-height: 1.75;
}


/* =========================================================
           FEATURES
        ========================================================= */

.features {
    margin-top: 38px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}


.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.82);
    font-size: 13px;
}


.feature-icon {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}


.brand-footer {
    position: absolute;
    bottom: 27px;
    left: 52px;
    font-size: 10px;
    color: rgba(255,255,255,.35);
    z-index: 3;
}


/* =========================================================
           RIGHT AUTH SECTION
        ========================================================= */

.auth-section {
    padding: 42px 60px;
    display: flex;
    align-items: center;
}


.auth-content {
    width: 100%;
    max-width: 500px;
    margin: auto;
}


/* =========================================================
           HEADER
        ========================================================= */

.auth-header {
    margin-bottom: 25px;
}


    .auth-header h1 {
        font-size: 29px;
        letter-spacing: -.6px;
        color: #111827;
        margin-bottom: 7px;
    }


    .auth-header p {
        font-size: 13px;
        color: #858e9e;
    }


/* =========================================================
           FORM
        ========================================================= */

.auth-form {
    display: none;
    animation: formFade .25s ease;
}


    .auth-form.active {
        display: block;
    }


@keyframes formFade {

    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
           FORM GROUP
        ========================================================= */

.form-group {
    margin-bottom: 16px;
}


.form-label {
    display: block;
    font-size: 12px;
    font-weight: 650;
    color: #343d4f;
    margin-bottom: 7px;
}


.required {
    color: #ef4444;
}


/* =========================================================
           INPUT
        ========================================================= */

.input-wrapper {
    position: relative;
}


.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa3b2;
    font-size: 14px;
    pointer-events: none;
}


.form-input {
    width: 100%;
    height: 47px;
    border: 1px solid #e0e5ed;
    border-radius: 9px;
    padding: 0 14px 0 40px;
    outline: none;
    font-size: 13px;
    color: #1f2937;
    background: #ffffff;
    transition: .2s;
}


    .form-input::placeholder {
        color: #aab1be;
    }


    .form-input:focus {
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99,102,241,.08);
    }


/* =========================================================
           EMAIL / MOBILE VERIFY
        ========================================================= */

.verify-row {
    display: flex;
    gap: 8px;
}


    .verify-row .input-wrapper {
        flex: 1;
    }


.verify-btn {
    height: 47px;
    min-width: 75px;
    padding: 0 14px;
    border-radius: 9px;
    border: 1px solid #dce2ed;
    background: #f7f8fc;
    color: #4f46e5;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: .2s;
}


    .verify-btn:hover {
        background: #eef0ff;
        border-color: #cdd2ff;
    }


    .verify-btn.verified {
        background: #f0fdf4;
        border-color: #bbf7d0;
        color: #16a34a;
    }


    .verify-btn:disabled {
        cursor: not-allowed;
        opacity: .7;
    }


/* =========================================================
           VERIFIED STATUS
        ========================================================= */

.verified-status {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    color: #16a34a;
    font-size: 10px;
    font-weight: 600;
}


.check {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
}


/* =========================================================
           PASSWORD
        ========================================================= */

.password-wrapper {
    position: relative;
}


    .password-wrapper .form-input {
        padding-right: 42px;
    }


.password-toggle {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #929aaa;
    cursor: pointer;
    font-size: 13px;
}


.password-strength {
    height: 3px;
    background: #edf0f4;
    border-radius: 5px;
    margin-top: 6px;
    overflow: hidden;
}


    .password-strength span {
        display: block;
        height: 100%;
        width: 0;
        transition: .3s;
    }


.password-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #777;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
}

    .password-hint span::before {
        content: "• ";
        color: #999;
    }


/* =========================================================
           PASSWORD COLUMNS
        ========================================================= */

.password-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}


/* =========================================================
           LOGIN OPTIONS
        ========================================================= */

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 7px 0 20px;
    font-size: 10px;
    color: #858e9e;
}


.remember {
    display: flex;
    align-items: center;
    gap: 6px;
}


    .remember input {
        accent-color: #4f46e5;
    }


.forgot {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 650;
}


/* =========================================================
           TERMS
        ========================================================= */

.terms {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 7px 0 18px;
    color: #858e9e;
    font-size: 10px;
    line-height: 1.5;
}


    .terms input {
        margin-top: 2px;
        accent-color: #4f46e5;
    }


    .terms a {
        color: #4f46e5;
        text-decoration: none;
        font-weight: 600;
    }


/* =========================================================
           MAIN BUTTON
        ========================================================= */

.main-btn {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient( 135deg, #4f46e5, #2563eb );
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 9px 22px rgba(79,70,229,.20);
    transition: .2s;
}


    .main-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 13px 28px rgba(79,70,229,.26);
    }


    .main-btn:disabled {
        background: #cbd1dc;
        box-shadow: none;
        cursor: not-allowed;
        transform: none;
    }


/* =========================================================
           SWITCH LINK
        ========================================================= */

.switch-link {
    text-align: center;
    margin-top: 17px;
    font-size: 11px;
    color: #8a93a3;
}


    .switch-link a {
        color: #4f46e5;
        font-weight: 700;
        text-decoration: none;
        cursor: pointer;
    }


/* =========================================================
           OTP MODAL
        ========================================================= */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.62);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
}


    .modal.show {
        display: flex;
    }


.otp-card {
    width: 100%;
    max-width: 390px;
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,.22);
    animation: popup .2s ease;
}


@keyframes popup {

    from {
        opacity: 0;
        transform: translateY(10px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.otp-icon {
    width: 56px;
    height: 56px;
    border-radius: 15px;
    margin: 0 auto 15px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}


.otp-card h2 {
    font-size: 20px;
    margin-bottom: 7px;
    color: #111827;
}


.otp-card p {
    color: #8992a2;
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 22px;
}


.otp-boxes {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}


.otp-box {
    width: 44px;
    height: 49px;
    border: 1px solid #dfe4ec;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    outline: none;
}


    .otp-box:focus {
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99,102,241,.08);
    }


.resend {
    color: #8a93a3;
    font-size: 10px;
    margin-bottom: 18px;
}


    .resend a {
        color: #4f46e5;
        font-weight: 700;
        text-decoration: none;
        cursor: pointer;
    }


    .resend.disabled {
        opacity: .5;
        pointer-events: none;
    }


.otp-submit {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 9px;
    background: #4f46e5;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}


.cancel {
    margin-top: 12px;
    border: 0;
    background: none;
    color: #8a93a3;
    font-size: 10px;
    cursor: pointer;
}


/* =========================================================
           TOAST
        ========================================================= */

.toast {
    position: fixed;
    right: 25px;
    bottom: 25px;
    min-width: 260px;
    padding: 13px 17px;
    border-radius: 10px;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    transform: translateY(100px);
    opacity: 0;
    transition: .3s;
    z-index: 10000;
}


    .toast.show {
        transform: translateY(0);
        opacity: 1;
    }


/* =========================================================
           RESPONSIVE
        ========================================================= */

@media(max-width:850px) {

    .auth-container {
        grid-template-columns: 1fr;
        max-width: 560px;
    }


    .brand-section {
        display: none;
    }


    .auth-section {
        padding: 40px 35px;
    }
}


@media(max-width:500px) {

    body {
        padding: 10px;
    }


    .auth-container {
        border-radius: 20px;
    }


    .auth-section {
        padding: 30px 20px;
    }


    .auth-header h1 {
        font-size: 25px;
    }


    .verify-row {
        flex-direction: column;
    }


    .verify-btn {
        width: 100%;
    }


    .password-columns {
        grid-template-columns: 1fr;
    }


    .otp-box {
        width: 40px;
        height: 46px;
    }


    .toast {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }
}
