/* Estilos para tela de login - Merchan Up */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
}

/* Container Principal */
.login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Lado Esquerdo - Formulário */
.login-form-section {
    flex: 0.4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #ffffff;
    position: relative;
    overflow-y: auto;
}

/* Modo claro - COMENTADO: Modo escuro é padrão na tela de login */
/*
.light-theme .login-form-section {
    background: #ffffff;
}
*/

.dark-theme .login-form-section {
    background: #0a1929;
    color: #ffffff;
}

.login-form-container {
    width: 100%;
    max-width: 380px;
    position: relative;
}

/* Toggle Theme - COMENTADO: Modo escuro é padrão na tela de login */
/*
.theme-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.theme-toggle:hover {
    background: #e0e0e0;
    transform: scale(1.1);
}

.dark-theme .theme-toggle {
    background: #1e3a5f;
    color: #ffffff;
}

.dark-theme .theme-toggle:hover {
    background: #2a4a6f;
}
*/

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

.login-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

.login-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.dark-theme .login-subtitle {
    color: #e0e0e0;
}

.login-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

.dark-theme .login-description {
    color: #b0b0b0;
}

/* Mensagens */
.login-messages {
    margin-bottom: 30px;
}

.alert {
    border-radius: 8px;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
}

/* Formulário */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.dark-theme .form-label {
    color: #e0e0e0;
}

.form-label i {
    margin-right: 6px;
    color: #666;
}

.dark-theme .form-label i {
    color: #b0b0b0;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #999;
    z-index: 2;
}

.dark-theme .input-icon {
    color: #888;
}

.form-control {
    width: 100%;
    padding: 14px 16px 14px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #333;
}

.dark-theme .form-control {
    background: #1a2332;
    border-color: #2a3a4a;
    color: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.dark-theme .form-control:focus {
    border-color: #4a9eff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.2);
}

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

.dark-theme .form-control::placeholder {
    color: #666;
}

.password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    z-index: 2;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #666;
}

.dark-theme .password-toggle {
    color: #888;
}

.dark-theme .password-toggle:hover {
    color: #aaa;
}

/* Opções do Formulário */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    border: 2px solid #ccc;
}

.form-check-input:checked {
    background-color: #0066cc;
    border-color: #0066cc;
}

.form-check-label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.dark-theme .form-check-label {
    color: #b0b0b0;
}

.forgot-password {
    font-size: 14px;
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #0052a3;
    text-decoration: underline;
}

.dark-theme .forgot-password {
    color: #4a9eff;
}

.dark-theme .forgot-password:hover {
    color: #6bb0ff;
}

/* Botão de Login */
.btn-login {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
    background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login i {
    font-size: 18px;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.dark-theme .login-footer {
    border-top-color: #2a3a4a;
}

.login-footer p {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.dark-theme .login-footer p {
    color: #666;
}

/* Lado Direito - Imagem */
.login-image-section {
    flex: 0.6;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Modo claro - COMENTADO: Modo escuro é padrão na tela de login */
/*
.light-theme .login-image-section {
    background: transparent;
}
*/

.dark-theme .login-image-section {
    background: transparent;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.brand-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    user-select: none;
    pointer-events: none;
}

.image-protection {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    background: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
}

.brand-logo {
    max-width: 80%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.1));
}

/* Responsividade */
@media (max-width: 1024px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-image-section {
        display: none;
    }

    .login-form-section {
        min-height: 100vh;
    }
}

@media (max-width: 768px) {
    .login-form-section {
        padding: 20px;
    }

    .login-title {
        font-size: 28px;
    }

    .image-title {
        font-size: 36px;
    }

    .image-description {
        font-size: 16px;
    }
}

/* Validação */
.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
}

.dark-theme .invalid-feedback {
    color: #ff6b6b;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.dark-theme .form-control.is-invalid {
    border-color: #ff6b6b;
}

/* Alertas */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.dark-theme .alert-success {
    background-color: #1e4620;
    color: #90ee90;
    border-left-color: #4caf50;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.dark-theme .alert-danger {
    background-color: #4a1e1e;
    color: #ff6b6b;
    border-left-color: #ff5252;
}
