/* Login Page Styles - Based on Halping Template */

/* Font Face Definitions */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-extrabold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #38b449;
    --primary-dark: #2d8f3a;
    --secondary: #231942;
    --background: #f1ffe9;
    --white: #ffffff;
    --light: #f0f0f0;
    --lighter: #fafafa;
    --danger: #fa416a;
    --warning: #fe9870;
    --success: #0dac69;
    --text-dark: #231942;
    --text-muted: #6c757d;
}

/* Body and Base Styles */
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 13px;
    background-color: var(--background);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Header Logo */
.header-logo {
    background-color: var(--background);
    border-bottom: 1px solid rgba(35, 25, 66, 0.1);
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 200px;
}

/* Login Container */
.log-in {
    padding: 1.5rem;
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--background);
}

.log-in h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: var(--primary);
}

/* Alert Messages */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.alert-danger {
    background-color: #fff5f5;
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.alert-success {
    background-color: #f0fff4;
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-info {
    background-color: #f0f9ff;
    color: var(--primary);
    border-left: 4px solid var(--primary);
}

.alert .bx {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert .btn-close {
    padding: 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
    background-size: 0.8rem;
}

/* Form Styles */
.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark) !important;
    margin-bottom: 0.5rem;
}

.form-control {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #e0e0e0 !important;
    border-radius: 0 !important;
    padding: 0.75rem 0 !important;
    font-size: 1rem;
    font-weight: 500;
    transition: border-color 0.3s ease;
    color: var(--text-dark);
}

.form-control:focus {
    box-shadow: none !important;
    border-bottom-color: var(--primary) !important;
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Button Styles */
.btn-primary {
    background-color: var(--secondary) !important;
    border: none !important;
    border-radius: 18px !important;
    padding: 1.25rem 2rem !important;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(35, 25, 66, 0.08);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 180, 73, 0.3);
}

.btn-lg {
    padding: 1.25rem 2rem !important;
    font-size: 1.1rem !important;
}

/* Footer Styles */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--background);
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.footer .text-muted {
    color: var(--text-dark) !important;
    font-size: 0.875rem;
    font-weight: 600;
}

.footer a {
    color: var(--primary) !important;
    text-decoration: none;
    font-weight: 700;
}

.footer a:hover {
    text-decoration: underline;
}

/* Utility Classes */
.text-primary {
    color: var(--primary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.small {
    font-size: 0.875rem;
}

.text-decoration-underline {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-logo {
        padding: 1rem 0;
    }
    
    .logo-img {
        height: 50px;
        max-width: 150px;
    }
    
    .log-in {
        padding: 1rem;
        min-height: calc(100vh - 100px);
    }
    
    .log-in h2 {
        font-size: 2rem;
    }
    
    .alert {
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }
    
    .alert .bx {
        font-size: 1.1rem;
    }
    
    .btn-lg {
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    .footer {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
        max-width: 120px;
    }
    
    .log-in h2 {
        font-size: 1.75rem;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .alert {
        padding: 0.75rem 0.875rem;
        font-size: 0.8rem;
    }
}

/* Finger-friendly improvements */
.btn, .form-control, a {
    min-height: 44px; /* Apple's recommended minimum touch target size */
}

.form-control {
    padding: 12px 0 !important; /* Increased padding for better touch */
}

/* Focus states for accessibility */
.btn:focus, .form-control:focus, a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Loading state */
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Error states */
.form-control.is-invalid {
    border-bottom-color: var(--danger) !important;
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Logo styles */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    padding: 1rem;
}

.logo-login {
    width: auto;
    height: auto;
    max-width: 200px; /* Ajusta este valor según el tamaño deseado */
    max-height: 200px;
}

/* Media query para dispositivos móviles */
@media (max-width: 768px) {
    .logo-login {
        max-width: 180px; /* Tamaño más pequeño para móviles */
        max-height: 150px;
    }
    
    .logo-container {
        margin: 1.5rem auto;
    }
}

/* Media query para dispositivos muy pequeños */
@media (max-width: 320px) {
    .logo-login {
        max-width: 120px;
        max-height: 120px;
    }
    
    .logo-container {
        margin: 1rem auto;
    }
} 