
/* css/auth.css */

/* Login page - Mejorado */
.login-page {
      background: linear-gradient(135deg, #000000 0%, #000000 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.login-container {
    width: 100%;
    max-width: 620px;
    position: relative;
    z-index: 2;
}

.login-card {
    background: #0a0a0a;
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    border: 1px solid #1a1a1a;
    position: relative;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #000000, #33ff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 6px rgba(102, 126, 234, 0.2));
}

.login-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    letter-spacing: -0.5px;
}

.login-subtitle {
    color: #718096;
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    opacity: 0.8;
}


/* ===== TÍTULO PRINCIPAL ===== */
.main-title {
    position: fixed;
    left: 5%;
    top: 10%;
    z-index: 10;
    max-width: 800px;
}

.main-title h1 {
    font-size: 3.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.main-title h1 span {
    color: #ffffff;
}

/* Línea decorativa */
.main-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -15px;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, #39ff14, transparent);
}


/* Alert Messages */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease;
    font-size: 0.95rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-error {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    color: #c53030;
    border-left: 4px solid #c53030;
}

.alert-success {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    color: #276749;
    border-left: 4px solid #38a169;
}

.alert i {
    font-size: 1.2rem;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group:focus-within {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #a0aec0;
    font-size: 1.1rem;
    z-index: 1;
    transition: all 0.3s ease;
}

.input-group:focus-within .input-icon {
    color: #667eea;
    transform: scale(1.1);
}

.form-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    background: transparent;
    color: #2d3748;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.form-input:focus {
    outline: none;
}

.password-toggle {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-top: -5px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #4a5568;
    user-select: none;
    font-weight: 500;
    gap: 10px;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-container input:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.forgot-password:hover {
    color: #764ba2;
    background: rgba(102, 126, 234, 0.1);
}

.btn-login {
    background: linear-gradient(135deg, #000000, #764ba2);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-login:active {
    transform: translateY(-1px);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-login i {
    font-size: 1.1rem;
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 15px 0;
    color: #a0aec0;
    font-size: 0.85rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
}

.login-divider span {
    padding: 0 15px;
    background: white;
}

.demo-credentials {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    margin-top: 10px;
}

.demo-credentials h3 {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-credentials h3 i {
    color: #667eea;
}

.credential-item {
    background: white;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.credential-item:hover {
    transform: translateX(5px);
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.credential-role {
    font-weight: 600;
    color: #2d3748;
}

.credential-details {
    font-size: 0.85rem;
    color: #718096;
    text-align: right;
}

.login-footer {
    margin-top: 35px;
    text-align: center;
    color: #a0aec0;
    font-size: 0.85rem;
    padding-top: 25px;
    border-top: 1px solid #edf2f7;
    line-height: 1.5;
}

.login-footer p {
    margin: 5px 0;
}

.version {
    font-size: 0.8rem;
    color: #cbd5e0;
    margin-top: 5px;
}

/* Background Shapes */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 25s infinite linear;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    animation-delay: -10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 10%;
    animation-delay: -15s;
}


/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .login-card {
        padding: 30px 25px;
        margin: 10px;
    }
    
    .login-header h1 {
        font-size: 2rem;
    }
    
    .logo-icon {
        font-size: 3rem;
    }
    
    .shape-1, .shape-2, .shape-3, .shape-4 {
        display: none;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .login-card {
        padding: 25px 20px;
    }
    
    .login-header {
        margin-bottom: 30px;
    }
    
    .login-header h1 {
        font-size: 1.8rem;
    }
    
    .login-subtitle {
        font-size: 0.95rem;
    }
    
    .form-input {
        padding: 14px 20px 14px 45px;
        font-size: 0.95rem;
    }
    
    .input-icon {
        font-size: 1rem;
        left: 15px;
    }
    
    .btn-login {
        padding: 16px;
        font-size: 0.95rem;
    }
    
    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Estilos para páginas de autenticación */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    position: relative;
    z-index: 2;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo-icon {
    font-size: 32px;
    color: #667eea;
}

.auth-header h1 {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.auth-subtitle {
    color: #666;
    font-size: 16px;
    margin-top: 5px;
}

.instructions {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
    border-left: 4px solid #667eea;
}

.instructions p {
    color: #555;
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructions i {
    color: #667eea;
    font-size: 16px;
}

.auth-form .form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
}

.btn-auth {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.auth-links {
    margin-top: 25px;
    text-align: center;
}

.auth-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.auth-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
    color: #999;
    font-size: 12px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.version {
    margin-top: 5px;
    font-size: 11px;
}

/* Alertas */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

.alert-error {
    background: #fed7d7;
    color: #c53030;
    border-left: 4px solid #c53030;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border-left: 4px solid #38a169;
}

.alert-info {
    background: #bee3f8;
    color: #2c5282;
    border-left: 4px solid #4299e1;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .form-input {
        padding: 12px;
    }
    
    .btn-auth {
        padding: 12px;
    }
}