:root {
    --bg-dark: #1a1612;
    --bg-brown: #2d2419;
    --bg-brown-warm: #3a2e21;
    --bg-brown-light: #4a3f33;
    --bg-card: rgba(45, 36, 25, 0.65);
    --accent-orange: #ff9505;
    --accent-orange-bright: #ffb627;
    --accent-orange-dark: #e2711d;
    --accent-orange-glow: rgba(255, 149, 5, 0.3);
    --accent-yellow: #ffc971;
    --text-white: #ffffff;
    --text-gray: #e5e5e5;
    --text-gray-light: #b8b8b8;
    --border-color: rgba(255, 149, 5, 0.2);
    --input-bg: rgba(58, 46, 33, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: 
        radial-gradient(ellipse 150% 120% at 0% 0%, rgba(255, 149, 5, 0.05) 0%, rgba(255, 149, 5, 0.03) 20%, rgba(255, 149, 5, 0.015) 40%, rgba(255, 149, 5, 0.005) 60%, transparent 80%),
        radial-gradient(ellipse 150% 120% at 100% 100%, rgba(255, 149, 5, 0.05) 0%, rgba(255, 149, 5, 0.03) 20%, rgba(255, 149, 5, 0.015) 40%, rgba(255, 149, 5, 0.005) 60%, transparent 80%),
        radial-gradient(ellipse 120% 150% at 0% 100%, rgba(255, 201, 113, 0.04) 0%, rgba(255, 201, 113, 0.025) 20%, rgba(255, 201, 113, 0.015) 40%, rgba(255, 201, 113, 0.005) 60%, transparent 80%),
        radial-gradient(ellipse 120% 150% at 100% 0%, rgba(255, 201, 113, 0.04) 0%, rgba(255, 201, 113, 0.025) 20%, rgba(255, 201, 113, 0.015) 40%, rgba(255, 201, 113, 0.005) 60%, transparent 80%),
        radial-gradient(ellipse 180% 100% at 50% 30%, rgba(204, 88, 3, 0.1) 0%, rgba(226, 113, 29, 0.07) 20%, rgba(255, 149, 5, 0.05) 40%, rgba(255, 149, 5, 0.025) 60%, rgba(255, 149, 5, 0.01) 80%, transparent 95%),
        radial-gradient(ellipse 180% 100% at 50% 70%, rgba(204, 88, 3, 0.08) 0%, rgba(226, 113, 29, 0.06) 20%, rgba(255, 149, 5, 0.04) 40%, rgba(255, 149, 5, 0.02) 60%, rgba(255, 149, 5, 0.005) 80%, transparent 95%),
        #1a1612;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 15px;
    padding-top: 30px;
    overflow-y: auto;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    background: transparent;
    border-radius: 20px;
    overflow: visible;
}

/* Top - Branding (Independent) */
.auth-branding {
    width: 100%;
    max-width: 480px;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-bottom: 25px;
    position: relative;
    overflow: visible;
}

.auth-branding::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: 
        radial-gradient(circle at center, var(--accent-orange-glow) 0%, transparent 70%);
    opacity: 0.15;
    animation: pulseBackground 4s ease-in-out infinite;
    pointer-events: none;
}

.auth-branding::after {
    display: none;
}

@keyframes pulseBackground {
    0%, 100% {
        opacity: 0.15;
    }
    50% {
        opacity: 0.2;
    }
}

.logo-container {
    position: relative;
    margin-bottom: 18px;
    animation: logoBounce 6s ease-in-out infinite;
}

@keyframes logoBounce {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, var(--accent-orange-glow) 0%, transparent 65%);
    filter: blur(25px);
    z-index: 0;
    opacity: 0.5;
}

@keyframes glowPulse {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 0.6;
    }
}

.auth-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 15px var(--accent-orange-glow));
}

.brand-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-white);
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 15px var(--accent-orange-glow);
}

.brand-subtitle {
    font-size: 0.85rem;
    color: var(--text-gray-light);
    text-align: center;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

/* Center - Forms */
.auth-forms {
    width: 100%;
    padding: 30px 35px 35px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    min-height: auto;
    position: relative;
}

.auth-forms::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    border-radius: 20px;
    pointer-events: none;
    z-index: 0;
}

.auth-forms > * {
    position: relative;
    z-index: 1;
}

.auth-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.auth-tab {
    flex: 1;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-gray-light);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 149, 5, 0.2), transparent);
    transition: left 0.5s ease;
}

.auth-tab:hover::before {
    left: 100%;
}

.auth-tab:hover {
    border-color: rgba(255, 149, 5, 0.4);
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.04);
}

.auth-tab.active {
    background: rgba(255, 149, 5, 0.1);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    box-shadow: 0 0 15px rgba(255, 149, 5, 0.2);
}

.auth-tab.active::before {
    display: none;
}

/* Form Container */
.form-container {
    display: none;
    animation: fadeSlideIn 0.5s ease forwards;
}

.form-container.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    color: var(--text-gray-light);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--accent-orange);
    pointer-events: none;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 15px var(--accent-orange-glow);
}

.input-wrapper input::placeholder {
    color: var(--text-gray-light);
    opacity: 0.5;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.checkbox-wrapper:hover {
    transform: translateX(3px);
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--accent-orange);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.checkbox-wrapper:hover input[type="checkbox"] {
    transform: scale(1.1);
    box-shadow: 0 0 8px var(--accent-orange-glow);
}

.checkbox-label {
    color: var(--text-gray-light);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.checkbox-wrapper:hover .checkbox-label {
    color: var(--text-white);
}

.captcha-placeholder {
    min-height: 65px;
    margin-bottom: 16px;
    background: var(--input-bg);
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray-light);
    font-size: 0.8rem;
}

.captcha-placeholder::after {
    content: 'reCAPTCHA will be added here';
    opacity: 0.5;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent-orange);
    border: none;
    border-radius: 10px;
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.auth-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.auth-submit-btn:hover::before {
    left: 100%;
}

.auth-submit-btn:hover {
    background: var(--accent-orange-bright);
    box-shadow: 0 8px 25px var(--accent-orange-glow);
    transform: translateY(-2px);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-submit-btn svg {
    position: relative;
    z-index: 1;
}

.auth-submit-btn span,
.auth-submit-btn::after {
    position: relative;
    z-index: 1;
}

.message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.85rem;
    display: none;
}

.message.error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
    display: block;
}

.message.success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
    color: #2ecc71;
    display: block;
}

/* Responsive Design */
@media (max-width: 968px) {
    .auth-container {
        max-width: 500px;
    }

    .auth-branding {
        padding: 30px 20px 25px;
    }

    .auth-logo {
        width: 120px;
        height: 120px;
    }

    .brand-title {
        font-size: 1.5rem;
    }

    .auth-forms {
        padding: 35px 40px 45px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        max-width: 100%;
    }

    .auth-branding {
        padding: 25px 15px 20px;
    }

    .auth-logo {
        width: 100px;
        height: 100px;
    }

    .brand-title {
        font-size: 1.3rem;
    }

    .brand-subtitle {
        font-size: 0.85rem;
    }

    .auth-forms {
        padding: 30px 25px 35px;
    }

    .auth-tabs {
        gap: 10px;
    }

    .auth-tab {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

