/* Estilos para páginas de autenticación (login, callback, onboarding) */

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #0a0e27 0%, #1a1f3a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Efecto de fondo animado similar a la home */
body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.auth-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 450px;
    width: 100%;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.auth-container.wide {
    max-width: 600px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 40px;
}

.icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0e27;
    font-size: 2rem;
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.icon-circle.error {
    background: #f44336;
}

.icon-circle.success {
    background: #4caf50;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
}

input[type="email"],
input[type="text"],
input[type="tel"],
select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

input[type="email"]::placeholder,
input[type="text"]::placeholder,
input[type="tel"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

input[type="email"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
select:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    color: #0a0e27;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 212, 255, 0.5);
    background: linear-gradient(135deg, #00e4ff 0%, #00ff98 100%);
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.info-box {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    text-align: left;
}

.info-box i {
    color: #00d4ff;
    margin-right: 8px;
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    text-align: left;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-link {
    margin-top: 20px;
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #00ff88;
    transform: translateX(-3px);
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

.spinner-large {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

h1 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.btn-retry {
    margin-top: 20px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    color: #0a0e27;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

/* Responsive */

/* Mobile Small - < 480px */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .auth-container {
        padding: 30px 20px;
        border-radius: 15px;
        max-width: 100%;
    }

    .auth-container.wide {
        max-width: 100%;
    }

    .logo {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .icon-circle {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
        font-size: 1.75rem;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    p {
        font-size: 0.9rem;
    }

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

    label {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    input[type="email"],
    input[type="text"],
    input[type="tel"],
    select {
        padding: 12px 16px;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .btn-primary {
        padding: 14px;
        font-size: 1rem;
        min-height: 48px; /* Touch target */
        border-radius: 8px;
    }

    .btn-retry {
        padding: 12px 24px;
        font-size: 0.95rem;
        min-height: 44px;
    }

    .info-box {
        margin-top: 20px;
        padding: 16px;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .alert {
        padding: 12px 16px;
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    .back-link {
        margin-top: 16px;
        font-size: 0.9rem;
    }

    .spinner {
        width: 14px;
        height: 14px;
        border-width: 2px;
    }

    .spinner-large {
        width: 50px;
        height: 50px;
        border-width: 3px;
        margin-bottom: 20px;
    }
}
