/* Auth Pages Styles - SEO Wars */

/* Importar fuentes */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Inter:wght@400;600;700&display=swap');

/* Variables de marca para auth */
:root {
    --sw-bg-dark: #0b1015;
    --sw-bg-darker: #0a0f14;
    --sw-bg-panel: #0f1620;
    --sw-bg-card: #1a1f2e;
    --sw-text-primary: #e7eef5;
    --sw-text-secondary: #9db0c5;
    --sw-text-muted: #6b7c8a;
    --sw-primary: #00bcd4;
    --sw-primary-dark: #0097a7;
    --sw-secondary: #b176ff;
    --sw-accent: #68d4ff;
    --sw-border: #1b2736;
    --sw-border-accent: #2a3a4a;
    --sw-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --sw-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --sw-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --sw-transition: all 0.2s ease;
}

/* Reset básico */
* {
    box-sizing: border-box;
}

body {
    background: var(--sw-bg-dark);
    color: var(--sw-text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Layout principal */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    flex: 1;
}

.row-flex {
    display: grid;
    grid-template-columns: 520px minmax(540px, 1fr);
    gap: 52px;
    width: 100%;
    min-height: 70vh;
    align-items: center;
}

@media (max-width: 1080px) {
    .row-flex {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

/* Card de autenticación */
.auth-card {
    background: var(--sw-bg-panel);
    border: 1px solid var(--sw-border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--sw-shadow-lg);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sw-primary), var(--sw-secondary));
}

.title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--sw-accent);
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.auth-sub {
    color: var(--sw-text-secondary);
    text-align: center;
    margin: 0 0 2rem 0;
    font-size: 1.1rem;
}

/* Formularios */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field label {
    font-weight: 600;
    color: var(--sw-text-primary);
    font-size: 0.9rem;
}

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

.input-with-icon input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--sw-border);
    border-radius: 8px;
    background: var(--sw-bg-card);
    color: var(--sw-text-primary);
    font-size: 1rem;
    transition: var(--sw-transition);
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--sw-primary);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.input-with-icon .icon {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    opacity: 0.7;
    pointer-events: none;
}

.input-with-icon .icon.mail {
    background: url('/assets/pixel/ui/ui_ic_mail_24.svg') no-repeat center/20px;
}

.input-with-icon .icon.lock {
    background: url('/assets/pixel/ui/ui_ic_lock_24.svg') no-repeat center/20px;
}

.input-with-icon .icon.user {
    background: url('/assets/pixel/ui/ui_ic_user_24.svg') no-repeat center/20px;
}

.icon-btn {
    position: absolute;
    right: 1rem;
    width: 20px;
    height: 20px;
    border: none;
    background: url('/assets/pixel/ui/ui_ic_eye_24.svg') no-repeat center/20px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--sw-transition);
}

.icon-btn:hover {
    opacity: 1;
}

.icon-btn.on {
    background-image: url('/assets/pixel/ui/ui_ic_eye_off_24.svg');
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--sw-transition);
    font-size: 1rem;
    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;
}

.btn:hover::before {
    left: 100%;
}

.btn.primary {
    background: linear-gradient(135deg, var(--sw-primary), var(--sw-primary-dark));
    color: white;
    box-shadow: var(--sw-shadow-sm);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--sw-shadow-md);
}

/* Enlaces */
.link {
    color: var(--sw-accent);
    text-decoration: underline;
    transition: var(--sw-transition);
}

.link:hover {
    color: var(--sw-secondary);
}

.muted {
    color: var(--sw-text-muted);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
}

/* Hero lateral */
.auth-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-frame {
    width: 100%;
    max-width: 500px;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--sw-shadow-lg);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
}

.bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.bullets li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--sw-text-secondary);
    font-size: 0.95rem;
}

.bullets li::before {
    content: '✓';
    color: var(--sw-primary);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Términos y condiciones */
.terms {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--sw-text-secondary);
    margin: 1rem 0;
}

.terms input[type="checkbox"] {
    margin: 0;
    margin-top: 0.2rem;
}

/* Alertas */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

.alert.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

/* Hints */
.hint {
    color: var(--sw-text-muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .title {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1rem;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}


