/* Estilos de Autenticación (Login, Recovery, Admin) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    background: #1a1a1a !important;
    color: white;
    font-family: 'Open Sans', 'Lato', sans-serif;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    font-size: 14px;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(245, 245, 245, 0.8);
}

.back-button img {
    height: 16px;
    margin-right: 8px;
}

.login-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    text-align: center;
}

.logo {
    margin-bottom: 40px;
}

.logo img {
    height: 50px;
    margin-bottom: 15px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 400;
    color: #f9751c;
    margin: 0;
}

#loginForm, #recoveryForm, #adminForm {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: #ffffff;
    font-size: 16px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #f9751c;
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group select option {
    background: #1a1a1a;
    color: white;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    border-color: #f9751c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    color: #ff6b6b;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    display: none;
}

.success-message {
    color: #4cd964;
    margin-top: 15px;
    padding: 10px;
    background: rgba(76, 217, 100, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(76, 217, 100, 0.3);
    display: none;
}

.info-message {
    margin-top: 30px;
    padding: 15px;
    background: rgba(249, 117, 28, 0.1);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    color: #ccc;
    text-align: center;
    border-left: 4px solid #f9751c;
}

.auth-links {
    text-align: center; 
    margin-top: 15px;
}

.auth-links a {
    color: #ccc; 
    font-size: 14px; 
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #f9751c;
    text-decoration: underline;
}

/* Tabla de usuarios para admin */
.users-table-container {
    margin-top: 30px;
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
    font-size: 14px;
}

.users-table th, .users-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: left;
}

.users-table th {
    background: rgba(255,255,255,0.05);
    color: #f9751c;
}

.action-btn {
    padding: 5px 10px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 12px;
}

.delete-btn {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.delete-btn:hover {
    background: rgba(255, 107, 107, 0.4);
}

/* Password Toggle Styles */
.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    padding-right: 45px !important;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: #f9751c;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
