/* ===================================
   Login Page - Responsive Styles
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    flex-shrink: 0;
}

/* Main Section */
.u-section-1 {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.u-sheet-1 {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Title Styles */
.system-title {
    text-align: center;
    width: 100%;
}

.system-title h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: #333;
    margin-bottom: 20px;
}

/* Form Container */
.contenedor-formularios {
    width: 100%;
}

.contenedor-formularios > .text-center {
    width: 100%;
}

.contenedor-formularios label {
    display: block;
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: 0px;
    color: #555;
}

/* Logo */
.logo-ser {
    width: 220px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 5px;
    display: block;
}

/* Form Styles */
.form_container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

form {
    width: 100%;
}

/* Login Input Groups - Custom styles to avoid Bootstrap conflicts */
.login-input-group {
    display: flex;
    margin-bottom: 15px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.login-input-icon {
    background-color: #f0f0f0;
    padding: 2px 15px;
    display: flex;
    align-items: center;
    border-right: 1px solid #ddd;
}

.login-input-icon i {
    font-size: 1.2rem;
    color: #666;
}

.login-input {
    flex: 1;
    padding: 2px 15px;
    font-size: 1rem;
    border: none;
    outline: none;
    width: 100%;
}

.login-input:focus {
    box-shadow: inset 0 0 3px rgba(0, 123, 255, 0.5);
}

.login-input-group:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Forgot Password Link */
.forgot-password-link {
    text-align: right;
    margin-top: 15px;
    margin-bottom: 25px;
}

.forgot-password-link a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.forgot-password-link a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Login Buttons */
.login_container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.login_container button {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: navy;
    color: white;
}

.btn-primary:hover {
    background-color: #003366;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Privacy Link */
.privacy-link {
    text-align: center;
}

.privacy-link a {
    color: navy;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.privacy-link a:hover {
    color: #003366;
    text-decoration: underline;
}

/* Footer */
footer {
    flex-shrink: 0;
    position: relative !important;
    bottom: auto !important;
    width: 100% !important;
    padding: 20px;
    text-align: center;
    font-size: 0.85rem;
}

footer div {
    margin: 5px 0;
}

/* ===================================
   Modal Styles
   =================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: #fefefe;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    max-width: 500px;
    width: 100%;
}

.modal-content-lg {
    max-width: 800px;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

.btn-modal {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal:hover {
    background-color: #0056b3;
}

/* ===================================
   Responsive Design - Tablet (768px)
   =================================== */

@media (max-width: 768px) {
    .u-section-1 {
        padding: 15px;
    }
    
    .system-title h1 {
        font-size: 1.75rem;
    }
    
    .logo-ser {
        max-width: 150px;
    }
    
    .login_container {
        flex-direction: column;
    }
    
    .login_container button {
        width: 100%;
        min-width: auto;
    }
    
    header img {
        max-width: 80%;
        height: auto;
    }
}

/* ===================================
   Responsive Design - Mobile (480px)
   =================================== */

@media (max-width: 480px) {
    .u-section-1 {
        padding: 10px;
    }
    
    .system-title h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    
    .contenedor-formularios label {
        font-size: 1rem;
        margin-bottom: 0px;
    }
    
    .logo-ser {
        max-width: 120px;
        margin-bottom: 20px;
    }
    
    .input-group {
        margin-bottom: 12px;
    }
    
    .forgot-password-link {
        font-size: 0.85rem;
    }
    
    .form_container {
        max-width: 100%;
    }
    
    footer {
        font-size: 0.75rem;
        padding: 15px;
    }
    
    footer div {
        margin: 3px 0;
    }
    
    .modal-content {
        max-height: 95vh;
    }
}
