/* Fondo general */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Fondo claro y limpio (Blanco con toque gris sutil) */
    background: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    margin: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Caja del login */
.login-container {
    background: #fff;
    padding: 40px 35px;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.15);
    width: 360px;
    text-align: center;
}

/* Logo + texto */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.logo-container img.logo {
    width: 70px;
    height: auto;
    margin-right: 10px;
}

.logo-container h1 {
    font-size: 30px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* Título */
h2 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #555;
    font-weight: 500;
}

/* Inputs */
.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #fafafa;
    transition: 0.3s ease;
}

.input-group i {
    margin-right: 10px;
    color: #777;
}

.input-group input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 15px;
    background: transparent;
}

.input-group:focus-within {
    border-color: #444;
    background: #fff;
}

/* Botón elegante */
button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    background: linear-gradient(135deg, #444, #000);
    transition: 0.3s ease;
}

button:hover {
    background: linear-gradient(135deg, #222, #111);
    transform: translateY(-2px);
}

/* Mensaje de error */
.error {
    background: #ffe0e0;
    color: #c0392b;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-size: 13px;
}

/* Recuperar contraseña */
.forgot {
    margin-top: 12px;
}

.forgot a {
    font-size: 13px;
    color: #555;
    text-decoration: none;
}

.forgot a:hover {
    text-decoration: underline;
}

/* Footer */
.footer-login {
    margin-top: 20px;
    font-size: 11px;
    color: #999;
    text-align: center;
}

.footer-login p {
    margin: 0;
}

/* Checklist de Credenciales */
.credentials-helper {
    margin-top: 20px;
    margin-bottom: 15px;
}

.toggle-credentials {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    width: 100%;
}

.toggle-credentials:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.credentials-list {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    text-align: left;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.credentials-list h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 14px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.credential-item {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.credential-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    margin: 0;
}

.credential-check {
    margin-right: 8px;
    transform: scale(1.1);
}

.credential-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

.copy-email, .copy-password {
    background: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.3s ease;
    flex: 1;
}

.copy-email:hover, .copy-password:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.credential-note {
    margin-top: 12px;
    text-align: center;
    padding: 8px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
}

.credential-note small {
    color: #856404;
    font-size: 11px;
}

/* Responsivo */
@media (max-width: 480px) {
    .login-container {
        width: 90%;
        padding: 30px 20px;
    }

    .logo-container h1 {
        font-size: 24px;
    }

    .logo-container img.logo {
        width: 55px;
    }

    .credentials-list {
        padding: 12px;
    }

    .credential-actions {
        flex-direction: column;
    }

    .copy-email, .copy-password {
        margin-bottom: 5px;
    }
}

.remember-group {
    margin: 8px 0 12px;
    text-align: left;
}

.remember-label {
    font-size: 13px;
    color: #555;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.remember-label input[type="checkbox"] {
    transform: scale(1.1);
}
