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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 20px;
}

.auth-container {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-container h2 {
    color: #FFA500;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.auth-container > p {
    color: #6B7280;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
}

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
    animation: fadeIn 0.3s ease-out;
}

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

.alert.error {
    background-color: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid #DC2626;
}

.alert.success {
    background-color: #D1FAE5;
    color: #065F46;
    border-left: 4px solid #10B981;
}

form {
    margin-bottom: 24px;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 15px;
    color: #1F2937;
    transition: all 0.3s ease;
    background-color: #F9FAFB;
}

.input-group input:focus {
    outline: none;
    border-color: #FFA500;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(255, 165, 0, 0.1);
}

.input-group input::placeholder {
    color: #9CA3AF;
}

button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
    position: relative;
    overflow: hidden;
}

button[type="submit"]::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;
}

button[type="submit"]:hover::before {
    left: 100%;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.4);
}

button[type="submit"]:active {
    transform: translateY(0);
}

.links {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

.links a {
    color: #FFA500;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.links a::before {
    content: '←';
    font-size: 16px;
    transition: transform 0.3s ease;
}

.links a:hover {
    color: #FF8C00;
}

.links a:hover::before {
    transform: translateX(-3px);
}

/* Responsive */
@media (max-width: 640px) {
    .auth-container {
        padding: 40px 30px;
    }

    .auth-container h2 {
        font-size: 28px;
    }

    .auth-container > p {
        font-size: 14px;
    }
}

/* Estilos adicionales para la página de login si los necesitas */
.input-group-password {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9CA3AF;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #6B7280;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #FFA500;
}

.checkbox-group label {
    color: #6B7280;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.forgot-password {
    color: #FFA500;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #FF8C00;
}

/* Conexión segura badge */
.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #D1FAE5;
    color: #065F46;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.secure-badge::before {
    content: '🔒';
    font-size: 14px;
}