/* ===================================
   VARIABLES Y ESTILOS GLOBALES
   =================================== */

:root {
    --primary: #37517e;
    --secondary: #47b2e4;
    --light: #f7f9fc;
    --dark: #212529;
    --gray: #6c757d;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}


/* ===================================
   NAVBAR
   =================================== */

.navbar {
    background: #37517e;
    box-shadow: 0 2px 15px rgba(55, 81, 126, 0.15);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.logo-nav {
    height: 35px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 8px;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}


/* ===================================
   LOGIN SECTION
   =================================== */

.login-section {
    background: var(--light);
    min-height: calc(100vh - 50px - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.login-wrapper {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 1px 10px 10px rgba(55, 81, 126, 0.15);
    animation: fadeInScale 0.5s ease;
}

.login-header {
    margin-bottom: 30px;
}

.login-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 1rem;
    color: var(--gray);
}

.login-form,
.recover-form {
    animation: fadeIn 0.5s ease;
}

.form-label {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(71, 178, 228, 0.25);
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.form-check-label {
    color: var(--gray);
    font-size: 0.95rem;
    cursor: pointer;
    margin-left: 8px;
}

.btn-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.forgot-password-link {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}


/* ===================================
   FOOTER - ESTILO SIMPLE
   =================================== */

.footer {
    background: #37517e;
    color: white;
    position: relative;
}

.footer-simple {
    padding: 25px 0;
}

.footer p {
    margin-bottom: 0;
}

.text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}


/* ===================================
   ANIMACIONES
   =================================== */

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===================================
   ALERTAS
   =================================== */

.alert {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    animation: slideInDown 0.3s ease;
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.alert-success {
    background: #28a745;
    color: white;
}

.alert-warning {
    background: #ffc107;
    color: #333;
}

.alert-danger {
    background: #dc3545;
    color: white;
}

.alert-info {
    background: #17a2b8;
    color: white;
}

.alert .btn-close {
    filter: brightness(0) invert(1);
}


/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .login-wrapper {
        padding: 30px 20px;
    }
    .login-title {
        font-size: 1.5rem;
    }
    .login-subtitle {
        font-size: 0.9rem;
    }
    .alert {
        left: 10px;
        right: 10px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    .logo-nav {
        height: 30px;
    }
    .login-wrapper {
        padding: 25px 15px;
    }
    .login-title {
        font-size: 1.3rem;
    }
}