/* ==========================================================================
   ESTILOS DE LOGIN ADMINISTRATIVO e CORREÇÕES DE AUTOFILL
   ========================================================================== */

.login-header {
    text-align: center;
    margin-bottom: 1rem;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 400px;
    margin-top: 1rem;
}

.login-logo-area {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo-area img {
    height: 60px;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.5));
}

.login-logo-area h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1rem;
    color: var(--text-primary);
}

/* --- Wrapper do Input com Ícone --- */
.input-icon-wrap {
    position: relative;
}

.input-icon-wrap i.fa-user,
.input-icon-wrap i.fa-key {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    font-size: 0.95rem;
}

.input-icon-wrap .login-control {
    padding-left: 40px;
    width: 100%;
}

.input-icon-wrap .login-control#password {
    padding-right: 40px;
}

.input-icon-wrap #togglePassword {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.input-icon-wrap #togglePassword:hover {
    color: var(--text-primary);
}

.btn-login-submit {
    width: 100%;
    margin-top: 1rem;
}

/* --- Ajuste de Autofill para Tema Escuro --- */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary) !important;
    -webkit-box-shadow: 0 0 0px 1000px rgba(15, 23, 42, 0.9) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* --- Banner de Instalação iOS Admin --- */
#ios-install-banner-admin {
    display: none;
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #0a1628, #0078d4);
    color: white;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

#ios-install-banner-admin .banner-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

#ios-install-banner-admin .banner-text {
    font-size: 0.82rem;
    line-height: 1.4;
}

#ios-install-banner-admin button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

#ios-install-banner-admin button:hover {
    background: rgba(255, 255, 255, 0.3);
}
