/* Estilos específicos para páginas de login del sistema */
.sms-login-system,
.sms-agent-login,
.sms-supervisor-login {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.sms-login-container,
.login-container {
    width: 100%;
    max-width: 900px;
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.login-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.login-header h1 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.login-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

/* Opciones de login */
.login-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.login-option {
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f8f9fa;
    cursor: pointer;
}

.login-option:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.agent-login {
    border-right: 1px solid #e9ecef;
}

.option-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.option-content h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 22px;
    font-weight: 600;
}

.option-content p {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.5;
}

.option-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left;
}

.option-features li {
    padding: 5px 0;
    color: #555;
    font-size: 14px;
}

.option-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.option-btn.sms-btn-primary {
    background: #3498db;
    color: white;
}

.option-btn.sms-btn-primary:hover {
    background: #2980b9;
}

.option-btn.sms-btn-success {
    background: #27ae60;
    color: white;
}

.option-btn.sms-btn-success:hover {
    background: #219653;
}

/* Formularios de login */
.login-form-container {
    padding: 30px;
}

.login-form-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.back-btn {
    padding: 8px 15px;
    background: #f39c12;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.back-btn:hover {
    background: #e67e22;
}

.login-form-header h3 {
    margin: 0;
    color: #2c3e50;
    flex: 1;
    font-size: 20px;
    font-weight: 600;
}

.sms-login-form,
.login-form {
    max-width: 400px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.forgot-password {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Características del sistema */
.login-features {
    background: #f8f9fa;
    padding: 25px 30px;
    border-top: 1px solid #e9ecef;
}

.login-features h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    font-size: 14px;
    color: #555;
}

.feature-icon {
    font-size: 16px;
}

/* Footer del login */
.login-footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.system-info {
    margin: 0 0 10px 0;
    color: #666;
    line-height: 1.4;
}

.system-info strong {
    color: #2c3e50;
}

.support-info {
    margin: 0;
    color: #888;
    font-size: 14px;
}

/* Mensajes del sistema */
#login-messages {
    margin-top: 15px;
}

.sms-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    text-align: center;
}

.sms-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    text-align: center;
}

/* Loading animation */
.sms-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .login-options {
        grid-template-columns: 1fr;
    }
    
    .agent-login {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .login-option {
        padding: 30px 20px;
    }
    
    .login-form-container {
        padding: 20px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .login-header {
        padding: 20px;
    }
    
    .login-header h1 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .sms-login-system,
    .sms-agent-login,
    .sms-supervisor-login {
        padding: 10px;
    }
    
    .login-header {
        padding: 15px;
    }
    
    .login-icon {
        font-size: 36px;
    }
    
    .option-icon {
        font-size: 36px;
    }
    
    .login-form-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .back-btn {
        align-self: flex-start;
    }
}