/* Login específico - Estilos modernos e minimalistas */

.login-body {
    background: #0f0f0f;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Container central */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 120px;
    max-width: 1200px;
    width: 100%;
    padding: 0 40px;
}

/* Texto à esquerda */
.login-description {
    flex: 1;
    max-width: 500px;
}

.login-description h2 {
    color: #ffd700;
    font-size: 3rem;
    font-weight: 200;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.login-description p {
    color: #888;
    font-size: 1.125rem;
    line-height: 1.7;
    font-weight: 300;
}

/* Container do formulário */
.login-container {
    width: 400px;
}

/* Box do login */
.login-box-modern {
    background: transparent;
    padding: 40px;
}

/* Header do login */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-icon {
    display: flex;
    justify-content: center;
}

.login-icon svg {
    opacity: 0.8;
}

/* Formulário */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Grupo de formulário */
.form-group-modern {
    position: relative;
}

/* Inputs */
.form-control-modern {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #444;
    border-radius: 0;
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-control-modern::placeholder {
    color: #555;
    font-size: 14px;
    font-weight: 300;
}

.form-control-modern:focus {
    border-bottom-color: #ffd700;
}

.form-control-modern:focus::placeholder {
    color: #888;
}

/* Forçar estilo mesmo com autocomplete */
.form-control-modern:-webkit-autofill,
.form-control-modern:-webkit-autofill:hover,
.form-control-modern:-webkit-autofill:focus,
.form-control-modern:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0f0f0f inset !important;
    -webkit-text-fill-color: #fff !important;
    background-color: transparent !important;
    border-bottom: 1px solid #444 !important;
}

/* Para outros navegadores */
.form-control-modern:autofill {
    background-color: transparent !important;
    color: #fff !important;
}

/* Mensagem de erro */
.error-message-modern {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #ff6b6b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

/* Grupo de senha com botões */
.password-group {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.password-group .form-control-modern {
    flex: 1;
    padding-right: 40px;
}

/* Toggle password visibility */
.toggle-password {
    position: absolute;
    right: 70px;
    bottom: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.toggle-password:hover {
    opacity: 1;
}

/* Botão circular */
.btn-round {
    width: 44px;
    height: 44px;
    background: transparent;
    color: #ffd700;
    border: 1px solid #ffd700;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 0;
}

.btn-round:hover {
    background: #ffd700;
    color: #000;
    transform: scale(1.05);
}

.btn-round:active {
    transform: scale(0.95);
}

/* Remove o botão antigo */
.btn-modern {
    display: none;
}

/* Responsividade */
@media (max-width: 968px) {
    .login-wrapper {
        flex-direction: column;
        gap: 40px;
        justify-content: center;
        min-height: 100vh;
        padding: 30px 20px;
    }
    
    .login-description {
        text-align: center;
        max-width: 100%;
    }
    
    .login-description h2 {
        font-size: 2.25rem;
    }
    
    .login-container {
        width: 100%;
        max-width: 380px;
    }
}

@media (max-width: 480px) {
    .login-body {
        padding: 20px;
        min-height: 100vh;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .login-wrapper {
        padding: 0;
        gap: 60px;
        min-height: auto;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .login-container {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .login-box-modern {
        padding: 20px 0;
        width: 100%;
    }
    
    .login-description {
        position: absolute;
        top: 60px;
        left: 20px;
        right: 20px;
        text-align: center;
    }
    
    .login-description h2 {
        font-size: 1.75rem;
        margin-bottom: 10px;
        line-height: 1.2;
    }
    
    .login-description p {
        font-size: 0.875rem;
        line-height: 1.4;
    }
    
    .login-header {
        margin-bottom: 25px;
    }
    
    .login-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .form-control-modern {
        font-size: 16px; /* Previne zoom no iOS */
    }
    
    .password-group {
        margin-bottom: 0;
    }
    
    .btn-round {
        width: 40px;
        height: 40px;
    }
    
    .btn-round svg {
        width: 18px;
        height: 18px;
    }
}