body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
}

.login-box, .reg-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: auto;
    box-sizing: border-box;
}

h2, h3 {
    color: #333;
    text-align: center;
}

input {
    width: 100%;
    padding: 15px; 
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 18px;
}

button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.2s ease;
}

.btn-primary { background: #007BFF; color: white; }
.btn-primary:hover { background: #0056b3; }

.btn-success { background: #28a745; color: white; }
.btn-success:hover { background: #218838; }

.btn-cancel { 
    background: #6c757d; 
    color: white; 
    text-decoration: none; 
    padding: 12px 20px; 
    border-radius: 4px; 
    text-align: center; 
    flex: 1; 
    font-weight: bold; 
}
.btn-cancel:hover { background: #5a6268; }

.link { text-align: center; margin-top: 15px; font-size: 14px; }
.link a { color: #007BFF; text-decoration: none; }

.error, .alert-danger { background-color: #dc3545; color: white; padding: 12px; border-radius: 4px; margin-bottom: 20px; text-align: center; font-weight: bold; }
.success, .alert-success { background-color: #28a745; color: white; padding: 12px; border-radius: 4px; margin-bottom: 20px; text-align: center; font-weight: bold; }

.container {
    max-width: 1000px;
    width: 100%;
    margin: 30px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

.container-sm { max-width: 450px; }

.logout-btn {
    background: #dc3545;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}
.logout-btn:hover { background: #bd2130; }

.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.btn-container {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.5); 
    backdrop-filter: blur(3px); 
}

.modal-content {
    background-color: #ffffff;
    margin: 15% auto; 
    padding: 45px;   
    border-radius: 10px;
    width: 95%;
    max-width: 600px; 
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    position: relative;
    animation: animarsubida 0.5s ease-out;
}

@keyframes animarsubida {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-modal:hover { color: #333; }
