/* ============================================
   TUKIH - AUTH STYLESHEET
   Color Palette: Purple Theme
   ============================================ */

/* CSS Variables - Purple Palette */
:root {
    /* Primary Purple Colors */
    --purple-900: #10002B;
    --purple-800: #240046;
    --purple-700: #3C096C;
    --purple-600: #5A189A;
    --purple-500: #7B2CBF;
    --purple-400: #9D4EDD;
    --purple-300: #C77DFF;
    --purple-200: #E0AAFF;
    --purple-100: #F3E5FF;
    
    /* Semantic Colors */
    --bg-primary: #10002B;
    --bg-secondary: #240046;
    --bg-card: #1A0035;
    --bg-card-hover: #2A0055;
    
    --text-primary: #FFFFFF;
    --text-secondary: #E0AAFF;
    --text-muted: #9D4EDD;
    
    --accent: #C77DFF;
    --accent-hover: #E0AAFF;
    
    /* Status Colors */
    --success: #22C55E;
    --warning: #EAB308;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(16, 0, 43, 0.3);
    --shadow-md: 0 4px 8px rgba(16, 0, 43, 0.4);
    --shadow-lg: 0 8px 16px rgba(16, 0, 43, 0.5);
    --shadow-glow: 0 0 20px rgba(157, 78, 221, 0.3);
    
    /* Borders */
    --border-color: rgba(157, 78, 221, 0.3);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

/* ============================================
   FLOATING HEARTS BACKGROUND
   ============================================ */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.heart {
    position: absolute;
    font-size: 24px;
    color: var(--purple-600);
    opacity: 0.3;
    animation: floatHeart 15s infinite linear;
}

@keyframes floatHeart {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple-500) 0%, var(--purple-600) 50%, var(--purple-700) 100%);
    color: var(--text-primary);
    box-shadow: 
        0 4px 15px rgba(123, 44, 191, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(199, 125, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--purple-400) 0%, var(--purple-500) 50%, var(--purple-600) 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(123, 44, 191, 0.5),
        0 4px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 20px rgba(157, 78, 221, 0.3);
    color: var(--text-primary);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 
        0 2px 10px rgba(123, 44, 191, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

.btn-block {
    width: 100%;
}

.btn i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: scale(1.1);
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(157, 78, 221, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(157, 78, 221, 0.2);
    }
}

.auth-logo .logo-icon {
    font-size: 2.5rem;
    color: white;
}

.auth-logo .logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.auth-logo.logo-full {
    background: none;
    padding: 0;
}

.auth-logo.logo-full .logo-image {
    width: 70px;
    height: 70px;
}

.auth-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-muted);
}

.auth-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.2);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-error {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--error);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-label input {
    accent-color: var(--accent);
}

.forgot-link {
    font-size: 0.9rem;
}

.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    position: relative;
    background: var(--bg-card);
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-auth {
    display: flex;
    gap: 12px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
}

/* ============================================
   AUTH - OTRAS OPCIONES (Patreon)
   ============================================ */
.auth-other-options {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.other-options-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    width: 100%;
}

.other-options-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.other-options-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.btn-patreon-alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: auto;
    margin: 0 auto;
    padding: 12px 28px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid rgba(255, 66, 77, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-patreon-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 66, 77, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-patreon-alt:hover::before {
    left: 100%;
}

.btn-patreon-alt:hover {
    background: linear-gradient(135deg, #252525 0%, #3a3a3a 100%);
    transform: translateY(-3px);
    border-color: rgba(255, 66, 77, 0.5);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 66, 77, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.btn-patreon-alt:active {
    transform: translateY(-1px);
}

.btn-patreon-alt .patreon-icon {
    width: 20px;
    height: 20px;
    color: #FF424D;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(255, 66, 77, 0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.btn-patreon-alt:hover .patreon-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 66, 77, 0.6));
}

/* ============================================
   MESSAGES / ALERTS
   ============================================ */
.messages-container {
    max-width: 1400px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

.alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

.alert-success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--error);
    color: var(--error);
}

.alert-info {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid var(--info);
    color: var(--info);
}

.alert-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 24px;
    }
    
    .social-auth {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-card {
        padding: 24px 20px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}
