/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple: #7C3AED;
    --purple-dark: #5B21B6;
    --purple-light: #A78BFA;
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --white: #FFFFFF;
    --black: #000000;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--gray-900);
}

/* ===== SPLIT CONTAINER ===== */
.split-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    background: var(--white);
}

/* ===== LEFT SIDE ===== */
.left-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 6rem 4rem 8%;
    background: var(--white);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 3rem;
}

.brand-icon {
    font-size: 1.8rem;
    color: var(--purple);
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-name span {
    color: var(--purple);
}

.brand-badge {
    background: var(--purple);
    padding: 0.1rem 0.7rem;
    border-radius: 100px;
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--white);
}

.welcome-content {
    max-width: 420px;
}

.welcome-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
}

.welcome-title .highlight {
    color: var(--purple);
}

.welcome-text {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.features-mini {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.feature-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-500);
    font-size: 0.85rem;
}

.feature-mini i {
    color: var(--gray-900);
    font-size: 0.9rem;
}

.feature-divider {
    width: 1px;
    height: 16px;
    background: var(--gray-200);
}

/* ===== RIGHT SIDE ===== */
.right-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 8% 4rem 4rem;
    background: var(--white);
}

.auth-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}

.auth-header {
    margin-bottom: 1.5rem;
}

.auth-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.auth-header p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.auth-tabs {
    display: flex;
    background: var(--gray-100);
    border-radius: 8px;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.5rem;
    text-align: center;
    border: none;
    background: none;
    color: var(--gray-500);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
}

.auth-tab.active {
    background: var(--white);
    color: var(--gray-900);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.auth-tab:hover:not(.active) {
    color: var(--gray-900);
}

/* ===== FORM ANIMATIONS ===== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    overflow: hidden;
    transform-origin: top;
    transition: 
        opacity 0.45s ease,
        transform 0.45s ease,
        max-height 0.55s ease,
        margin 0.45s ease,
        padding 0.45s ease;
}

.auth-form.hide {
    opacity: 0;
    transform: scaleY(0.85);
    max-height: 0;
    pointer-events: none;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.auth-form.show {
    opacity: 1;
    transform: scaleY(1);
    max-height: 900px;
    pointer-events: auto;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    position: relative;
}

.form-group i {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.7rem 0.9rem 0.7rem 2.8rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    color: var(--gray-900);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-input:focus {
    border-color: var(--purple);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.1rem 0 0.3rem;
}

.form-remember {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gray-500);
    font-size: 0.8rem;
    cursor: pointer;
}

.form-remember input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--purple);
    cursor: pointer;
}

.form-link {
    color: var(--purple);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
}

.form-link:hover {
    color: var(--purple-dark);
}

.btn-submit {
    width: 100%;
    padding: 0.75rem;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    background: var(--gray-900);
}

.btn-submit i {
    font-size: 0.8rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1rem;
    color: var(--gray-500);
    font-size: 0.85rem;
}

.auth-footer a {
    color: var(--purple);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    color: var(--purple-dark);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .left-side {
        padding: 3rem 5% 3rem 6%;
    }

    .right-side {
        padding: 3rem 6% 3rem 3rem;
    }

    .welcome-title {
        font-size: 2.6rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .left-side {
        padding: 4rem 5% 2rem;
        min-height: 40vh;
        justify-content: flex-start;
    }

    .right-side {
        padding: 1rem 5% 4rem;
        min-height: 60vh;
    }

    .welcome-title {
        font-size: 2.2rem;
    }

    .auth-card {
        padding: 1.5rem 1.2rem;
        max-width: 100%;
    }

    .features-mini {
        gap: 1rem;
    }

    .feature-divider {
        display: none;
    }

    .brand {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .welcome-title {
        font-size: 1.8rem;
    }

    .auth-header h2 {
        font-size: 1.2rem;
    }

    .auth-card {
        padding: 1.2rem 1rem;
        border-radius: 8px;
    }

    .form-input {
        padding: 0.6rem 0.8rem 0.6rem 2.5rem;
        font-size: 0.85rem;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .brand-badge {
        font-size: 0.45rem;
        padding: 0.05rem 0.5rem;
    }

    .btn-submit {
        padding: 0.65rem;
        font-size: 0.85rem;
    }
}

