:root {
    --primary-dark: #5e2475;
    --luxo: #481359;
    
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --bg-light: #ffffff;
    --input-bg: #f8f9fa;
    --input-border: #e1e4e8;
    
    --font-main: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif; 
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body, html {
    height: 100%;
    width: 100%;
    background-color: var(--bg-light);
}

.split-screen {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.left-pane {
    flex: 1.2;
    position: relative;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 40px;
}


.left-pane::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.left-pane .content-wrapper {
    z-index: 2;
    text-align: center;
    max-width: 100%;
    animation: fadeIn 1s ease-out;
}

.brand-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.brand-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    line-height: 1.6;
}

.right-pane {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 40px;
}

.login-container {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.logo {
    display: flex; 
    width: 400px;
}

.login-header h2 {
    font-size: 2rem;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Inputs --- */
.form_login {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

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

.input-wrapper ion-icon {
    position: absolute;
    left: 15px;
    font-size: 1.2rem;
    color: #999;
    transition: 0.3s;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 14px 14px 45px; /* Espaço para o ícone */
    font-size: 1rem;
    color: var(--text-main);
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

/* Estados de Foco */
.input-wrapper input:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(118, 49, 146, 0.1);
}

.input-wrapper input:focus + ion-icon {
    color: var(--primary-color);
}

/* Olho da Senha */
.toggle-password {
    right: 15px;
    left: auto !important; 
    cursor: pointer;
}

.toggle-password:hover {
    color: var(--primary-color);
}

/* --- Botão --- */
.forgot-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
}

.forgotPass {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.forgotPass:hover {
    color: var(--luxo);
    text-decoration: underline;
}

.btn_logar {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(118, 49, 146, 0.2);
}

.btn_logar:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 49, 146, 0.3);
}

.btn_logar:active {
    transform: translateY(0);
}

.copyright {
    text-align: center;
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 20px;
}

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

@media (max-width: 900px) {
    .split-screen {
        flex-direction: column;
    }
    
    .left-pane {
        display: none; 
    }
    
    .right-pane {
        flex: 1;
        padding: 20px;
    }
    
    .mobile-logo {
        display: block; /* Mostra logo no topo */
    }
    
    .login-container {
        max-width: 100%;
    }
}