/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #F7931A;
    --primary-orange: #FF8C00;
    --success-green: #00D4AA;
    --danger-red: #FF4757;
    --dark-bg: #0A0E17;
    --card-bg: rgba(255, 255, 255, 0.04);
    --glass-bg: rgba(255, 255, 255, 0.06);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-glass: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(255, 255, 255, 0.04);
    --input-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.auth-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0A0E17 0%, #1a1a3e 50%, #0A0E17 100%);
    z-index: -1;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: floatOrb 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-gold);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #627EEA;
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--primary-orange);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
    opacity: 0.15;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* Back Button */
.back-home {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-glass);
    border-radius: 25px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    z-index: 100;
}

.back-home:hover {
    color: var(--primary-gold);
    border-color: var(--primary-gold);
    transform: translateX(-3px);
}

/* Main Container */
.auth-container {
    max-width: 1300px;
    margin: 0 auto;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 5rem 2rem 2rem;
    align-items: center;
}

/* Left Side - Branding */
.auth-left {
    padding: 2rem 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.brand-logo i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-logo > div {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-logo span:first-child {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}

.brand-accent {
    font-size: 0.8rem;
    color: var(--primary-gold);
    font-weight: 600;
}

.brand-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.brand-badge {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
    color: #000;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(247, 147, 26, 0.3);
}

.brand-content h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-gold), #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-content > p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Brand Features */
.brand-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.brand-feature:hover {
    transform: translateX(5px);
    border-color: rgba(247, 147, 26, 0.3);
}

.feature-icon-sm {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.brand-feature h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.brand-feature p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Brand Stats */
.brand-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-glass);
}

.brand-stat {
    text-align: center;
}

.stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* Right Side - Form Card */
.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: rgba(20, 25, 40, 0.6);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Tabs */
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--input-bg);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 1.75rem;
    position: relative;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.7rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
    font-family: 'Inter', sans-serif;
}

.tab-btn.active {
    color: #000;
}

.tab-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
    border-radius: 10px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 4px 12px rgba(247, 147, 26, 0.3);
}

.tab-indicator.slide-right {
    transform: translateX(100%);
}

/* Form Containers */
.auth-form-container {
    display: none;
    animation: fadeIn 0.4s ease;
}

.auth-form-container.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    letter-spacing: -0.02em;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.optional {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 400;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i:first-child {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-wrapper input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: rgba(247, 147, 26, 0.05);
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.1);
}

.input-wrapper input:focus ~ i:first-child,
.input-wrapper:focus-within i:first-child {
    color: var(--primary-gold);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-gold);
}

/* Password Strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.strength-bar {
    flex: 1;
    height: 3px;
    background: var(--input-bg);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.strength-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--danger-red);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-bar.weak::before { width: 33%; background: var(--danger-red); }
.strength-bar.medium::before { width: 66%; background: #FFA500; }
.strength-bar.strong::before { width: 100%; background: var(--success-green); }

.strength-text {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -0.25rem 0 0.25rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-secondary);
    user-select: none;
}

.checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border-glass);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-wrapper input:checked ~ .checkmark {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
}

.checkbox-wrapper input:checked ~ .checkmark::after {
    content: '✓';
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
}

.checkbox-wrapper.terms {
    margin: 0.25rem 0;
    align-items: flex-start;
}

.checkbox-wrapper.terms .checkmark {
    margin-top: 2px;
}

.checkbox-wrapper a {
    color: var(--primary-gold);
    text-decoration: none;
}

.checkbox-wrapper a:hover {
    text-decoration: underline;
}

.forgot-link {
    font-size: 0.8rem;
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
    color: #000;
    border: none;
    padding: 0.9rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(247, 147, 26, 0.3);
    margin-top: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(247, 147, 26, 0.5);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit i {
    transition: transform 0.3s ease;
}

.btn-submit:hover i {
    transform: translateX(4px);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.25rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-glass);
}

.divider span {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Social Login */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

.social-btn i {
    font-size: 1rem;
}

/* Form Footer */
.form-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.form-footer a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(247, 147, 26, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold);
}
/* ========================================
   MOBILE RESPONSIVE - Auth Page
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 4rem 1.5rem 2rem;
        max-width: 600px;
    }

    .auth-left {
        padding: 0;
        text-align: center;
    }

    .brand-logo {
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .brand-badge {
        margin: 0 auto;
    }

    .brand-content h1 {
        font-size: 2.25rem;
    }

    .brand-features {
        display: none;
    }

    .brand-stats {
        margin-top: 0.5rem;
    }

    .auth-right {
        width: 100%;
    }

    .auth-card {
        max-width: 100%;
    }
}

/* Mobile - Phones */
@media (max-width: 640px) {
    body {
        overflow-x: hidden;
    }

    /* Back button */
    .back-home {
        top: 1rem;
        left: 1rem;
        padding: 0.5rem 0.85rem;
        font-size: 0.8rem;
    }

    .back-home span {
        display: none;
    }

    .back-home i {
        font-size: 0.9rem;
    }

    /* Background orbs - smaller */
    .orb-1 {
        width: 300px;
        height: 300px;
        top: -100px;
        left: -100px;
    }

    .orb-2 {
        width: 250px;
        height: 250px;
        bottom: -100px;
        right: -100px;
    }

    .orb-3 {
        width: 200px;
        height: 200px;
    }

    /* Container */
    .auth-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 4rem 1rem 2rem;
        min-height: auto;
    }

    /* Left - Branding (Compact) */
    .auth-left {
        padding: 0;
        text-align: center;
    }

    .brand-logo {
        justify-content: center;
        margin-bottom: 1rem;
        gap: 0.5rem;
    }

    .brand-logo i {
        font-size: 2rem;
    }

    .brand-logo span:first-child {
        font-size: 1.1rem;
    }

    .brand-accent {
        font-size: 0.7rem;
    }

    .brand-content {
        gap: 1rem;
        align-items: center;
    }

    .brand-badge {
        font-size: 0.65rem;
        padding: 0.35rem 0.8rem;
        margin: 0 auto;
    }

    .brand-content h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .brand-content > p {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 0 0.5rem;
    }

    /* Hide features on mobile to save space */
    .brand-features {
        display: none;
    }

    /* Compact stats */
    .brand-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding-top: 1rem;
        margin-top: 0.5rem;
    }

    .stat-val {
        font-size: 1.15rem;
    }

    .stat-lbl {
        font-size: 0.65rem;
    }

    /* Auth Card */
    .auth-card {
        padding: 1.5rem 1.25rem;
        border-radius: 20px;
        max-width: 100%;
    }

    /* Tabs */
    .auth-tabs {
        margin-bottom: 1.25rem;
    }

    .tab-btn {
        padding: 0.65rem;
        font-size: 0.85rem;
    }

    /* Form Headers */
    .form-header {
        margin-bottom: 1.25rem;
    }

    .form-header h2 {
        font-size: 1.35rem;
    }

    .form-header p {
        font-size: 0.8rem;
    }

    /* Form Inputs */
    .auth-form {
        gap: 0.85rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .form-group label {
        font-size: 0.75rem;
    }

    .input-wrapper input {
        padding: 0.85rem 1rem 0.85rem 2.5rem;
        font-size: 0.9rem;
        border-radius: 11px;
    }

    .input-wrapper i:first-child {
        left: 0.9rem;
        font-size: 0.8rem;
    }

    .toggle-password {
        right: 0.9rem;
        font-size: 0.8rem;
    }

    /* Form options */
    .form-options {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .checkbox-wrapper {
        font-size: 0.75rem;
    }

    .forgot-link {
        font-size: 0.75rem;
    }

    /* Submit Button */
    .btn-submit {
        padding: 0.95rem;
        font-size: 0.9rem;
        border-radius: 11px;
    }

    /* Divider */
    .divider {
        margin: 0.5rem 0;
    }

    .divider span {
        font-size: 0.7rem;
    }

    /* Social Buttons */
    .social-login {
        gap: 0.6rem;
    }

    .social-btn {
        padding: 0.7rem;
        font-size: 0.8rem;
    }

    .social-btn i {
        font-size: 0.9rem;
    }

    /* Form Footer */
    .form-footer {
        font-size: 0.8rem;
    }

    /* Terms checkbox */
    .checkbox-wrapper.terms {
        font-size: 0.75rem;
        line-height: 1.5;
    }

    /* Password strength */
    .strength-text {
        font-size: 0.65rem;
    }
}

/* Small Mobile */
@media (max-width: 380px) {
    .auth-container {
        padding: 3.5rem 0.75rem 1.5rem;
    }

    .auth-card {
        padding: 1.25rem 1rem;
    }

    .brand-content h1 {
        font-size: 1.5rem;
    }

    .brand-stats {
        gap: 0.35rem;
    }

    .stat-val {
        font-size: 1rem;
    }

    .stat-lbl {
        font-size: 0.6rem;
    }

    .tab-btn {
        font-size: 0.8rem;
    }

    .form-header h2 {
        font-size: 1.2rem;
    }

    .input-wrapper input {
        padding: 0.8rem 0.9rem 0.8rem 2.3rem;
        font-size: 0.85rem;
    }
}

/* Landscape Mobile */
@media (max-width: 900px) and (orientation: landscape) {
    .auth-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 4rem 1.5rem 2rem;
    }

    .brand-content h1 {
        font-size: 1.5rem;
    }

    .brand-features {
        display: none;
    }
}