/* BLOCOS DE ALINHAMENTO CONFORME IMAGEM */

/* Bloco 1: Entrar e Logo */
.login-header, .login-logo {
    height: 70px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
}

/* Bloco 2: Social login e Olá, administrador */
.social-login, .welcome-message > h2 {
    height: 40px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-login {
    gap: 16px;
}

.welcome-message > h2 {
    font-size: 32px;
    font-weight: 600;
    color: white;
    line-height: 1.2;
    margin-bottom: 15px;
}

/* Bloco 3: Divisor e espaço */
.divider {
    margin: 10px 0 15px;
    height: 25px;
    display: flex;
    align-items: center;
    color: #999;
    font-size: 14px;
}

/* Bloco 4: Inputs e mensagem */
.form-content, #motivation-message {
    margin-top: 10px;
    margin-bottom: 20px;
}

.message-box {
    height: auto;
    min-height: 130px;
    padding: 20px;
    position: relative;
}

/* Bloco 5: Rodapés alinhados */
.login-footer, .support-link {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 0;
}

/* Ajustes adicionais */
.login-card {
    height: 550px;
}

.login-left, .login-right {
    padding: 30px 40px;
}

/* Melhor contraste para o texto da mensagem */
.quote {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    display: block;
    line-height: 1.5;
    max-width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Estilo para o cursor de digitação */
.type-cursor {
    display: inline-block;
    color: white;
    font-weight: normal;
    margin-left: 2px;
    position: relative;
    animation: cursorBlink 600ms infinite;
}

@keyframes cursorBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Estilos para o contêiner de texto e cursor */
.text-container {
    display: inline;
    position: relative;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.text-content {
    display: inline;
}

/* Estilo para o cursor de digitação */
.type-cursor {
    display: inline;
    color: white;
    font-weight: normal;
    position: relative;
    animation: cursorBlink 600ms infinite;
    margin-left: 0;
    padding-left: 0;
}

@keyframes cursorBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Media Queries para Responsividade */

/* Correção global para evitar scroll desnecessário */
html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100%;
    height: 100%;
}

/* Elementos de fundo ajustados para evitar scroll */
.bg-grid, .bg-element {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.login-container {
    min-height: 100%;
    height: auto;
    position: relative;
    padding: 20px 0;
    box-sizing: border-box;
}

/* Tablets e dispositivos menores */
@media screen and (max-width: 992px) {
    .login-card {
        width: 90%;
        max-width: 700px;
    }
    
    .login-left, .login-right {
        padding: 25px 30px;
    }
    
    .welcome-message > h2 {
        font-size: 28px;
    }
    
    .message-box {
        min-height: 100px;
        padding: 15px;
    }
    
    /* Melhorar performance em dispositivos de médio porte */
    .floating-shape {
        animation-duration: 12s;
    }
}

/* Dispositivos móveis */
@media screen and (max-width: 768px) {
    /* Ajustes para eliminar scroll desnecessário */
    body {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #fff;
    }
    
    .login-container {
        display: flex;
        align-items: stretch;
        justify-content: stretch;
        width: 100%;
        height: 100%;
        padding: 0;
    }
    
    .login-card {
        flex-direction: column-reverse;
        height: 100vh;
        width: 100%;
        max-width: none;
        overflow: hidden;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    .login-left, .login-right {
        width: 100%;
        padding: 20px;
        border-radius: 0;
    }
    
    .login-right {
        border-radius: 0;
        padding-bottom: 10px;
        min-height: 180px;
    }
    
    .login-left {
        border-radius: 0;
        padding-top: 10px;
        flex: 1;
        background-color: #fff;
    }
    
    .login-logo img {
        height: 40px;
    }
    
    .welcome-message > h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .message-box {
        min-height: 70px;
        padding: 10px;
    }
    
    .message-box .quote {
        font-size: 14px;
    }
    
    /* Ajustes no formulário para mobile */
    .form-content {
        margin-top: 5px;
    }
    
    .input-group {
        margin-bottom: 15px;
    }
    
    .input-group input {
        height: 48px; /* Aumentar a área de toque */
        font-size: 16px; /* Evitar zoom no iPhone */
        padding: 12px 15px;
    }
    
    .toggle-password {
        width: 48px; /* Aumentar área de toque */
        height: 48px;
    }
    
    .remember-me {
        display: flex;
        align-items: center;
    }
    
    .remember-me input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }
    
    .login-button {
        margin-top: 15px;
        height: 48px;
        font-size: 16px;
        padding: 0 15px;
        width: 100%;
        border-radius: 6px;
    }
    
    /* Ajustes nos botões de social login */
    .social-login {
        gap: 12px;
    }
    
    .social-btn {
        width: 48px;
        height: 48px;
        min-width: 48px; /* Garantir área mínima de toque */
    }
    
    .social-btn i {
        font-size: 18px;
    }
    
    /* Melhorar espaçamento dos elementos */
    .divider {
        margin: 15px 0;
    }
    
    .login-footer, .support-link {
        font-size: 12px;
    }
    
    /* Corrigir animações para melhor desempenho */
    .floating-shape {
        display: none; /* Desativar animações pesadas em dispositivos móveis */
    }
}

/* Dispositivos muito pequenos */
@media screen and (max-width: 380px) {
    html, body {
        height: 100%;
        overflow: hidden;
    }
    
    .login-container {
        height: 100vh;
        padding: 0;
    }
    
    .login-card {
        width: 100%;
        height: 100vh;
        max-height: none;
        border-radius: 0;
        margin: 0;
        box-shadow: none;
    }
    
    .login-left, .login-right {
        padding: 15px;
    }
    
    /* Reduzir espaçamentos para aproveitar melhor o espaço */
    .login-header, .login-logo {
        height: 50px;
        margin-bottom: 10px;
    }
    
    .social-login, .welcome-message > h2 {
        margin: 10px 0;
    }
    
    .welcome-message > h2 {
        font-size: 22px;
    }
    
    .form-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .forgot-password {
        margin-left: 0;
    }
    
    /* Eliminar elementos não essenciais para economizar espaço */
    .bg-grid {
        opacity: 0.3;
    }
}

/* Safari e iOS fixes */
@supports (-webkit-touch-callout: none) {
    html, body {
        height: -webkit-fill-available;
    }
    
    .login-container {
        min-height: -webkit-fill-available;
    }
}

/* Orientação landscape para dispositivos móveis */
@media screen and (max-height: 600px) and (orientation: landscape) {
    body {
        overflow: hidden;
        background-color: #fff;
    }
    
    .login-container {
        height: 100vh;
        padding: 0;
        display: flex;
        align-items: stretch;
        justify-content: stretch;
    }
    
    .login-card {
        flex-direction: row;
        height: 100vh;
        max-height: none;
        width: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    .login-left, .login-right {
        width: 50%;
        height: 100%;
        padding: 15px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Scroll suave em iOS */
        border-radius: 0;
    }
    
    .login-right {
        background-color: #512da8; /* Cor roxa do tema */
    }
    
    .login-left {
        background-color: #fff;
    }
    
    .welcome-message > h2 {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    .message-box {
        min-height: 60px;
        padding: 8px;
    }
    
    .login-logo img {
        height: 30px;
    }
    
    .login-top-content {
        height: calc(100% - 30px);
        display: flex;
        flex-direction: column;
    }
    
    .input-group {
        margin-bottom: 10px;
    }
    
    .input-group input {
        height: 40px;
        font-size: 14px;
    }
    
    .toggle-password {
        width: 40px;
        height: 40px;
    }
    
    .login-button {
        height: 40px;
        margin-top: 10px;
    }
    
    .form-footer {
        margin-top: 5px;
        font-size: 12px;
    }
    
    /* Esconder ou reduzir elementos não essenciais */
    .login-footer p, .support-link a {
        font-size: 10px;
    }
    
    .floating-shape {
        display: none;
    }
} 