/* Enhanced Login Page - Brand Coherent Design */
/* Login Page Styles */

.hero {
    /* background: linear-gradient(135deg, #000000 0%, #333333 50%, #666666 100%); */
    background: #fff;
    color: #000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.intro-excerpt h1 {
    font-family: var(--font-family-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.intro-excerpt p {
    font-family: var(--font-family-body);
    font-size: 0.95rem;
    line-height: 1.6;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 3px;
    /* box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); */
    /* padding: 3rem; */
    max-width: 420px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-logo h1 {
    font-family: var(--font-family-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.4rem;
}

.login-logo h1 span {
    color: var(--dark-color);
}

.login-logo p {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-size: 1rem;
}

.login_logo {
    background: url(assets/img/timfin-small.png);
    background-repeat: no-repeat;
    background-size: cover;
    width: 50px;
    height: 45px;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.form-control {
    border-radius: 3px;
    padding: 0.45rem 0.9rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(171, 232, 212, 0.15);
    background: white;
}

.btn-login {
    background: var(--primary-color);
    border: none;
    border-radius: 3px;
    padding: 0.45rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--light-color);
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 0.85rem;
}

.btn-login:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    color: var(--light-color);
    box-shadow: 0 5px 15px rgba(171, 232, 212, 0.15);
}

.forgot-password-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: #122AC2;
    /*#3d9ca5*/
    text-decoration: underline;
}

.modal-content {
    border-radius: 3px;
    border: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 3px 3px 0 0;
}

.modal-title {
    color: var(--dark-color);
    font-weight: 600;
}

.modal-body .form-control {
    border-radius: 3px;
}

.modal-body .btn {
    border-radius: 3px;
    font-weight: 600;
}

@media (max-width: 991px) {
    .hero {
        padding: 50px 0;
    }

    .intro-excerpt h1 {
        font-size: 2.2rem;
    }

    .login-card {
        margin-top: 2rem;
        padding: 2rem;
    }
}


/* =====================================================
   LOGIN LAYOUT
   ===================================================== */

.min-vh-100 {
    min-height: 100vh !important;
}

/* Background Image Side - Immagine spostata a destra */
.col-xl-8.position-relative {
    background-size: cover !important;
    background-repeat: no-repeat !important;
}

/* =====================================================
   LOGIN FORM SIDE
   ===================================================== */

.col-xl-4.bg-white {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.05);
}

.login-card {
    max-width: 420px;
    width: 100%;
}

.login-card h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.login-card h1 img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.login-card h4 {
    font-size: 1.1rem;
    font-weight: 400;
    color: #6c757d;
    margin-bottom: 2rem;
}

/* =====================================================
   FORM ELEMENTS
   ===================================================== */

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    border-radius: 8px;
    border: 1.5px solid #e0e0e0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-control:focus {
    border-color: #122AC2;
    box-shadow: 0 0 0 0.25rem rgba(18, 42, 194, 0.1);
    background: white;
    outline: none;
}

.form-control::placeholder {
    color: #adb5bd;
}

/* =====================================================
   LOGIN BUTTON
   ===================================================== */

.btn-login {
    background: linear-gradient(135deg, #122AC2 0%, #0693e3 100%);
    border: none;
    border-radius: 8px;
    padding: 0.875rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(18, 42, 194, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #0e1f99 0%, #0580c9 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(18, 42, 194, 0.3);
    color: white;
}

.btn-login:active,
.btn-login:focus {
    background: linear-gradient(135deg, #0a1570 0%, #046da8 100%);
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(18, 42, 194, 0.3);
    color: white;
}

/* =====================================================
   FORGOT PASSWORD LINK
   ===================================================== */

.forgot-password-link {
    color: #122AC2;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.forgot-password-link:hover {
    color: #0693e3;
    text-decoration: underline;
}

/* =====================================================
   TEXT MUTED
   ===================================================== */

.text-center small.text-muted {
    color: #6c757d;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* =====================================================
   MODAL CUSTOMIZATION
   ===================================================== */

.modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #122AC2;
}

.modal-title {
    color: #2c3e50;
    font-weight: 600;
}

.modal .btn-primary {
    background: linear-gradient(135deg, #122AC2 0%, #0693e3 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(18, 42, 194, 0.2);
}

.modal .btn-primary:hover {
    background: linear-gradient(135deg, #0e1f99 0%, #0580c9 100%);
    box-shadow: 0 6px 16px rgba(18, 42, 194, 0.3);
}

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

@media (max-width: 767.98px) {
    .col-xl-4.bg-white {
        padding: 1.5rem;
    }

    .login-card h1 {
        font-size: 1.3rem;
    }

    .login-card h4 {
        font-size: 1rem;
    }

    .btn-login {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
}

@media (max-width: 991.98px) {

    /* Hide background image on tablet/mobile */
    .col-xl-8.position-relative {
        display: none !important;
    }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    animation: fadeInUp 0.6s ease-out;
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */

.form-control:focus-visible {
    outline: 3px solid rgba(18, 42, 194, 0.3);
    outline-offset: 2px;
}

.btn-login:focus-visible {
    outline: 3px solid rgba(18, 42, 194, 0.5);
    outline-offset: 2px;
}