/* ============================================
   ESTILOS COMPLETOS - CON BOTÓN MOSTRAR CONTRASEÑA
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 30%, #FF4500 50%, #1E90FF 80%, #0000FF 100%);
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 0;
}

.container {
    background-color: white;
    max-width: 500px;
    width: 100%;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    animation: slideIn 0.5s ease-out;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(2px);
}

.dashboard-container {
    max-width: 1000px !important;
}

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

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    color: #0000FF;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    border-bottom: 3px solid #FF4500;
    display: inline-block;
    padding-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.header p {
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
    background-color: rgba(255, 255, 255, 0.9);
}

input:focus, select:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.2);
}

input:hover, select:hover {
    border-color: #1E90FF;
}

/* ===== ESTILOS PARA CAMPO DE CONTRASEÑA CON BOTÓN ===== */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    flex: 1;
    padding-right: 50px; /* Espacio para el botón */
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #0000FF;
}

.toggle-password:focus {
    outline: none;
}
/* ==================================================== */

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

button {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit {
    background: linear-gradient(135deg, #0000FF, #1E90FF);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.4);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #1E90FF, #0000FF);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.5);
}

.btn-reset {
    background: linear-gradient(135deg, #FF4500, #FF0000);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
}

.btn-reset:hover {
    background: linear-gradient(135deg, #FF0000, #FF4500);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.5);
}

.mensaje {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    display: none;
    animation: fadeIn 0.3s ease-out;
    text-align: center;
    font-weight: 500;
}

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

.mensaje.success {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    border-left: 5px solid #0000FF;
    display: block;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.mensaje.error {
    background: linear-gradient(135deg, #FF4500, #FF0000);
    color: white;
    border-left: 5px solid #FFD700;
    display: block;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.3);
}

.mensaje.info {
    background: linear-gradient(135deg, #1E90FF, #0000FF);
    color: white;
    border-left: 5px solid #FFD700;
    display: block;
    box-shadow: 0 2px 10px rgba(30, 144, 255, 0.3);
}

/* Estilo para campo compuesto (usuario + dominio) */
.composed-input {
    display: flex;
    align-items: center;
}

.composed-input input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.composed-input span {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-left: none;
    border-radius: 0 10px 10px 0;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.composed-input input:focus + span {
    border-color: #FFD700;
    border-left: none;
}

.form-group small {
    color: #666;
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

.btn-link {
    background: none;
    border: none;
    color: #0000FF;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
}

.btn-link:hover {
    color: #FF4500;
    text-decoration: none;
}

/* Contador de sesión */
.contador-container {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f0f0f0, #ffffff);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #FFD700;
}

.contador-label {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.contador-tiempo {
    font-size: 36px;
    font-weight: bold;
    color: #0000FF;
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 5px rgba(0,0,255,0.2);
    letter-spacing: 2px;
    background: rgba(255,255,255,0.5);
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
    min-width: 200px;
}

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

th {
    background: #0000FF;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

tr:hover {
    background-color: #f5f5f5;
}

/* Gráficos */
canvas {
    max-width: 100%;
    height: auto !important;
}

/* Decoración */
.container::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(255,215,0,0.2) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .container { 
        padding: 30px 20px; 
    }
    
    .header h1 { 
        font-size: 24px; 
    }
    
    .form-actions { 
        flex-direction: column; 
    }
    
    .contador-tiempo { 
        font-size: 28px; 
        min-width: 160px; 
    }
    
    .composed-input {
        flex-direction: column;
    }
    
    .composed-input input {
        border-radius: 10px 10px 0 0;
        border-right: 2px solid #e0e0e0;
        border-bottom: none;
    }
    
    .composed-input span {
        border-radius: 0 0 10px 10px;
        border-left: 2px solid #e0e0e0;
        border-top: none;
        width: 100%;
        text-align: center;
    }
}