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

:root {
    /* Dark Theme (Default) */
    --primary: #6d00a0;
    --primary-dark: #300147;
    --bg-dark: #0f0a14;
    --bg-card: #20142b;
    --bg-card-transparent: #20142b6b;
    --text: #e2dce9;
    --text-muted: #a497b3;
    --border: #322144;
    --accent: #006141;
}

:root.light-theme {
    /* Light Theme */
    --primary: #6d00a0;
    --primary-dark: #300147;
    --bg-dark: #e8ebf1;
    --bg-card: #ffffff;
    --bg-card-transparent: #ffffff;
    --text: #171720;
    --text-muted: #6b7280;
    --border: #d4d8e2;
    --accent: #006141;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo img {
    max-width: 200px;
    height: auto;
    margin-bottom: 0.5rem;
}

.logo p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.card {
    background: var(--bg-card-transparent);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border);
}


.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

input {
    width: 100%;
    padding: 0.875rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: 0 10px 20px rgba(109, 0, 160, 0.2);
}

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

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

.alert.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert.show {
    display: block;
}

.footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* PAF-NFC-e Requisito V §1 */
.menu-fiscal-inacessivel {
    text-align: center;
    font-size: 0.62rem;
    color: #aaa;
    padding: 6px 16px;
    letter-spacing: 0.08em;
    font-weight: 600;
    opacity: 0.7;
    text-transform: uppercase;
    margin-top: 8px;
}