:root {
    --bg-dark: #000000;
    --bg-light: #000000;
    --primary-gold: var(--accent, #D4AF37);
    --primary-gold-hover: var(--accent-light, #FFD700);
    --accent-rgb: 212, 175, 55;
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(var(--accent-rgb), 0.2);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background: linear-gradient(to bottom, #170d30 0%, #0a0618 40vh, #000000 70vh);
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   ELEMENTOS MÍSTICOS - Background Celestial
   ============================================ */

.mystical-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-gold);
    border-radius: 50%;
    box-shadow:
        0 0 3px rgba(212, 175, 55, 0.8),
        0 0 6px rgba(212, 175, 55, 0.5);
    animation: twinkle 3s ease-in-out infinite;
}

.star::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.6), transparent);
    border-radius: 50%;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* ============================================
   HEADER NAVIGATION
   ============================================ */

.nav-left,
.nav-right {
    position: absolute;
    top: 25px;
    display: flex;
    gap: 16px;
    z-index: 100;
}

.nav-left {
    left: 30px;
}

.nav-right {
    right: 30px;
}

.nav-btn {
    font-family: var(--font-heading);
    color: #FFD700;
    background: rgba(23, 13, 48, 0.7);
    border: 1.5px solid rgba(255, 215, 0, 0.6);
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3), inset 0 0 5px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
    gap: 10px;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.nav-btn:hover {
    color: #a855f7 !important;
    border-color: #a855f7 !important;
    text-shadow:
        0 0 10px rgba(168, 85, 247, 0.8),
        0 0 20px rgba(168, 85, 247, 0.4) !important;
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(168, 85, 247, 0.5),
        0 0 40px rgba(168, 85, 247, 0.3),
        inset 0 0 15px rgba(168, 85, 247, 0.2) !important;
}

.nav-btn i {
    transition: transform 0.3s ease;
}

.nav-btn:hover i {
    transform: translateX(-5px);
}

.nav-btn:hover::before {
    opacity: 1;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* ============================================
   AUTH CONTAINER
   ============================================ */

.auth-container {
    display: flex;
    min-height: 80vh;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 60px;
}

.auth-info {
    max-width: 500px;
}

.auth-info h1 {
    font-size: 3rem;
    margin-bottom: 5px;
    /* Reduced gap as requested (was 20px) */
    color: #ffd700;
    /* Gold color */
}

/* Logo Styles - Official Asset Version */
.auth-logo-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 2rem;
}

.auth-logo-img {
    height: 4.5rem;
    /* Proporcional para o layout de Autenticação */
    width: auto;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
    display: block;
}

.subtitle-desc {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   AUTH CARD
   ============================================ */

.auth-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.auth-card:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(255, 215, 0, 0.3);
}

.auth-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.auth-tab {
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-tab.active {
    color: #FFD700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    border-bottom: 2px solid #FFD700;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-gold-hover);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.password-input-wrapper {
    position: relative;
}

.toggle-password-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    transition: color 0.3s;
}

.toggle-password-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.validating-email {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #5B8FD9;
    font-size: 0.85rem;
    display: none;
}

/* Password Requirements */
.password-requirements {
    margin-top: 10px;
    display: none;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
}

.requirement-item {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: all 0.3s;
}

.requirement-item.met {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

/* Form Check */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.form-check label {
    margin: 0;
    cursor: pointer;
    font-size: 0.9rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.auth-submit {
    width: 100%;
    height: 55px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
    border: 2px solid rgba(168, 85, 247, 0.5);
    border-radius: 12px;
    color: #ffffff;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 15px;
    font-size: 1.1rem;
    box-shadow:
        0 4px 15px rgba(124, 58, 237, 0.4),
        0 0 30px rgba(168, 85, 247, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.auth-submit:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 50%, #c4b5fd 100%);
    border-color: rgba(196, 181, 253, 0.8);
    box-shadow:
        0 6px 25px rgba(124, 58, 237, 0.6),
        0 0 50px rgba(168, 85, 247, 0.4),
        0 0 80px rgba(168, 85, 247, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.auth-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   PLANS
   ============================================ */

.plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.plan-option {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.02);
}

.plan-option.selected {
    border-color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.1);
}

.plan-name {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--primary-gold);
    display: block;
}

.plan-price {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   SOCIAL LOGIN
   ============================================ */

.social-login-section {
    margin-bottom: 30px;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.google-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--primary-gold-hover);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.apple-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--primary-gold-hover);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider span {
    position: relative;
    background: rgba(13, 13, 16, 0.9);
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ============================================
   FEEDBACK
   ============================================ */

.feedback-box {
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.feedback-box.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.feedback-box.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */

.hypper-footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    text-align: center;
    margin-top: auto;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-developed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Aptos', 'Segoe UI', sans-serif;
}

.footer-text {
    font-size: 0.8rem;
    opacity: 0.5;
    color: #fff;
    margin: 0;
}

.hypper-logo {
    height: 48px;
    width: auto;
    opacity: 0.8;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 968px) {
    .auth-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .auth-info h1 {
        font-size: 2.5rem;
    }

    .nav-left,
    .nav-right {
        position: static;
        justify-content: center;
        margin: 10px auto;
    }
}

@media (max-width: 640px) {
    .auth-card {
        padding: 30px 20px;
    }

    .auth-info h1 {
        font-size: 2rem;
    }

    .letter-m {
        font-size: 3rem;
    }
}