/* ============================================
   MEDICAL BLUE LOGIN STYLE - AprovaOdonto
   Inspirado em plataformas internacionais de CTBMF
   ============================================ */

/* Aplicar apenas quando loginScreen está ativo */
#loginScreen.screen.active {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%) !important;
    min-height: 100vh;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Medical Pattern Background */
#loginScreen.screen.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(59, 130, 246, 0.02) 35px, rgba(59, 130, 246, 0.02) 70px);
    pointer-events: none;
    z-index: 1;
}

/* Main wrapper */
.login-wrapper-medical {
    width: 100%;
    max-width: 1100px;
    display: flex;
    gap: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    position: relative;
    z-index: 2;
    margin: 20px auto;
}

/* ============================================
   LEFT SIDE - INFORMATIONAL
   ============================================ */

.info-side-medical {
    flex: 1;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    padding: 60px 50px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.info-side-medical::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.info-side-medical::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.info-content-medical {
    position: relative;
    z-index: 1;
}

.info-logo-medical {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.info-logo-icon-medical {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.info-logo-medical h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
}

.info-content-medical h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.info-content-medical p {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.95;
    margin-bottom: 35px;
}

.features-list-medical {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list-medical li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 15px;
}

.features-list-medical i {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.info-stats-medical {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item-medical {
    text-align: center;
    padding: 20px 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

.stat-number-medical {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label-medical {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trust-badges-medical {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.trust-badge-medical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    opacity: 0.9;
}

.trust-badge-medical i {
    font-size: 20px;
}

/* ============================================
   RIGHT SIDE - LOGIN FORM
   ============================================ */

.form-side-medical {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header-medical {
    margin-bottom: 40px;
}

.form-header-medical h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
}

.form-header-medical p {
    font-size: 15px;
    color: #64748b;
}

/* Tabs (reutilizando mas com ajustes) */
#loginScreen .tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 35px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 10px;
}

#loginScreen .tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#loginScreen .tab-btn.active {
    background: #fff;
    color: #1e40af;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#loginScreen .tab-btn:hover:not(.active) {
    color: #1e40af;
}

/* Forms */
#loginScreen .auth-form {
    display: none;
}

#loginScreen .auth-form.active {
    display: block;
    animation: slideInMedical 0.4s ease;
}

@keyframes slideInMedical {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

#loginScreen .form-group {
    margin-bottom: 25px;
}

#loginScreen .form-group label {
    display: block;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

#loginScreen .form-group label i {
    color: #3b82f6;
    margin-right: 8px;
    width: 18px;
}

#loginScreen .form-group input {
    width: 100%;
    padding: 14px 18px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #1e293b;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

#loginScreen .form-group input:focus {
    outline: none;
    background: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#loginScreen .form-group input::placeholder {
    color: #94a3b8;
}

#loginScreen .btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

#loginScreen .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

#loginScreen .btn-primary:active {
    transform: translateY(0);
}

#loginScreen .btn-primary i {
    margin-right: 8px;
}

/* Back to landing */
.back-to-landing-medical {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.back-to-landing-medical a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-landing-medical a:hover {
    color: #3b82f6;
}

.back-to-landing-medical i {
    margin-right: 8px;
}

/* Admin link */
.admin-link-medical {
    text-align: center;
    margin-top: 15px;
}

.admin-link-medical a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.admin-link-medical a:hover {
    color: #3b82f6;
}

.admin-link-medical i {
    margin-right: 6px;
}

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

@media (max-width: 900px) {
    #loginScreen.screen.active {
        padding: 10px;
        align-items: flex-start;
    }

    .login-wrapper-medical {
        flex-direction: column;
        margin: 10px auto;
    }

    .info-side-medical,
    .form-side-medical {
        padding: 40px 30px;
    }

    .info-stats-medical {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    #loginScreen.screen.active {
        padding: 10px;
        align-items: flex-start;
    }

    .login-wrapper-medical {
        margin: 10px auto;
    }

    .info-side-medical,
    .form-side-medical {
        padding: 30px 20px;
    }

    .form-header-medical h1 {
        font-size: 26px;
    }

    .info-content-medical h3 {
        font-size: 24px;
    }

    .info-logo-icon-medical {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .info-logo-medical h2 {
        font-size: 24px;
    }

    .info-stats-medical {
        gap: 10px;
    }

    .stat-number-medical {
        font-size: 24px;
    }
}

/* Hide old login container */
#loginScreen .login-container {
    display: none;
}
