:root {
    /* TEMA ESCURO (Padrão) */
    --bg-primary: #2b1d40;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-muted: #b9b0bf;
    
    /* BOTÃO E LINKS NO DARK MODE: Branco para destacar */
    --accent: #ffffff; 
    --btn-text: #2b1d40; 
    
    --input-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(185, 176, 191, 0.2);
    
    /* Logo iA Gestor - Dark */
    --logo-icon-bg: #ffffff;
    --logo-icon-color: #2b1d40;
}

body.light-mode {
    /* TEMA CLARO */
    --bg-primary: #f9fafb;
    --bg-card: #ffffff;
    --text-main: #2b1d40;
    --text-muted: #6b7280;
    
    /* BOTÃO E LINKS NO LIGHT MODE: Roxo escuro */
    --accent: #2b1d40; 
    --btn-text: #ffffff;
    
    --input-bg: #ffffff;
    --border: #e5e7eb;
    
    /* Logo iA Gestor - Light */
    --logo-icon-bg: #2b1d40;
    --logo-icon-color: #ffffff;
}

* { 
    font-family: 'Inter', sans-serif; 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centro absoluto vertical */
    transition: background 0.3s, color 0.3s;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.logo-circle {
    width: 48px;
    height: 48px;
    background-color: var(--logo-icon-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--logo-icon-color);
}

.logo-text {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.input-field {
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.password-input-wrapper .input-field {
    padding-right: 2.75rem;
}

.input-field:focus {
    border-color: var(--accent);
    outline: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--btn-text);
    font-weight: 700;
    width: 100%;
    padding: 0.8rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Link de criar conta: Branco e Negrito no Dark Mode */
.link-highlight {
    color: var(--accent);
    font-weight: 700; /* Negrito para destacar */
    text-decoration: none;
}

.link-highlight:hover {
    text-decoration: underline;
}

.footer-controls {
    position: absolute;
    bottom: 2rem;
    text-align: center;
    width: 100%;
}

.beta-badge{
    display: inline-flex;
    align-items: center;
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    background-color: rgba(192, 132, 252, 0.1);
    color: #c084fc;
    box-shadow: inset 0 0 0 1px rgba(192, 132, 252, 0.3);
}

/* Password Input Wrapper with Toggle Button */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password-btn {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2b1d40;
    transition: transform 0.2s;
}

.toggle-password-btn:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

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

.eye-icon,
.eye-off-icon {
    width: 20px;
    height: 20px;
    stroke-linecap: round;
    stroke-linejoin: round;
}