:root {
    --bg-main: #0c0c0e;
    --text-main: #f3f4f6;
    --text-support: #9ca3af;
    --border-glow: rgba(59, 130, 246, 0.2);
    --color-operator: #00b37e;
    --color-admin: #3b82f6;
    --active-color: var(--color-operator);
    --glass-bg: rgba(32, 32, 36, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.glow-circle {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(12, 12, 14, 0) 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
    transition: background 0.5s ease;
}

.glow-circle.left {
    top: -100px;
    left: -100px;
}

.glow-circle.right {
    bottom: -150px;
    right: -100px;
    background: radial-gradient(circle, rgba(0, 179, 126, 0.12) 0%, rgba(12, 12, 14, 0) 70%);
}

.login-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    padding: 45px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    animation: cardFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.brand-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.brand-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    background: linear-gradient(135deg, #fff 30%, #a8a8b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.brand-logo span {
    background: linear-gradient(135deg, var(--active-color) 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 0.3s;
}

.brand-sub {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-support);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.perfil-seletor {
    background-color: rgba(18, 18, 20, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 5px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    height: 52px;
}

.perfil-opcao {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-support);
    cursor: pointer;
    z-index: 5;
    transition: color 0.3s;
}

.perfil-opcao.active {
    color: #fff;
}

.perfil-slider {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    background-color: var(--active-color);
    border-radius: 6px;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-grupo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-support);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-container {
    position: relative;
}

.form-input {
    width: 100%;
    background-color: rgba(18, 18, 20, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    height: 52px;
    padding: 0 20px;
    font-size: 14px;
    color: #fff;
    outline: none;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: var(--active-color);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.02);
    background-color: rgba(18, 18, 20, 0.95);
}

.btn-entrar {
    margin-top: 10px;
    background-color: var(--active-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    height: 54px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-entrar:hover {
    filter: brightness(1.1);
}

.btn-entrar:active {
    transform: scale(0.98);
}

.alerta-erro {
    background-color: rgba(247, 90, 104, 0.1);
    border: 1px solid rgba(247, 90, 104, 0.2);
    color: #f75a68;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    display: none;
    align-items: center;
    gap: 10px;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
