:root {
    --primary-bg: #0b0900;
    --secondary-bg: #111008;
    --accent-color: #d4af37;
    --accent-amber: #f5a623;
    --accent-hover: #f1c40f;
    --text-primary: #ffffff;
    --text-secondary: #9a8c6e;
    --input-bg: #ffffff;
    --input-text: #333333;
    --border-color: #2a2310;
    --arc-color: rgba(212,175,55,0.12);
}

/* Tema Alternativo - Mixtel */
.theme-mixtel {
    --primary-bg: #141736;
    --secondary-bg: #1e224c;
    --accent-color: #00e08f;
    --accent-amber: #00c8ff;
    --accent-hover: #00ffaa;
    --text-primary: #ffffff;
    --text-secondary: #c0c5ff;
    --arc-color: rgba(0,224,143,0.12);
}

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

body {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    overflow: hidden;
    transition: background-color 0.5s ease;
}

.login-container {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* ==== Lado Esquerdo (Branding) ==== */
.login-branding {
    flex: 6;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 40% 50%, rgba(212,175,55,0.18) 0%, var(--primary-bg) 70%);
    overflow: hidden;
    transition: background 0.5s ease;
}

.branding-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212,175,55,0.05) 0%, transparent 50%, rgba(245,166,35,0.05) 100%);
    pointer-events: none;
}

.branding-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 80%;
    width: 80%;
    text-align: center;
}

.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.5s;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==== Centro de Marketing ==== */
.marketing-center {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arcs-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    z-index: 1;
    pointer-events: none;
}

.arc {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border-top: 15px solid var(--arc-color);
    border-right: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid transparent;
    transition: border-color 0.5s;
}

.arc-1 { width: 300px;  height: 300px;  border-top-width: 18px; }
.arc-2 { width: 450px;  height: 450px;  border-top-width: 22px; border-top-color: rgba(245,166,35,0.10); }
.arc-3 { width: 600px;  height: 600px;  border-top-width: 26px; }
.arc-4 { width: 750px;  height: 750px;  border-top-width: 30px; border-top-color: rgba(245,166,35,0.08); }
.arc-5 { width: 900px;  height: 900px;  border-top-width: 34px; }

/* ==== Círculo Central com Pulsação ==== */
@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0   rgba(212,175,55,0.5), 0 0 25px rgba(212,175,55,0.25); }
    50%  { box-shadow: 0 0 0 18px rgba(212,175,55,0),  0 0 50px rgba(212,175,55,0.4); }
    100% { box-shadow: 0 0 0 0   rgba(212,175,55,0.5), 0 0 25px rgba(212,175,55,0.25); }
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(212,175,55,0.6)); }
    50%       { filter: drop-shadow(0 0 22px rgba(245,166,35,0.8)); }
}

.center-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    background: linear-gradient(var(--primary-bg), var(--primary-bg)) padding-box,
                linear-gradient(135deg, var(--accent-color), var(--accent-amber)) border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(11,9,0,0.6);
    z-index: 10;
    animation: pulse-ring 2.8s ease-in-out infinite;
    cursor: default;
    overflow: hidden;
}

.center-circle i {
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.center-circle h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#centerLogoImg {
    animation: pulse-glow 2.8s ease-in-out infinite;
}

/* ==== Ícones flutuantes ==== */
.floating-icon {
    position: absolute;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    opacity: 0.75;
    animation: float 4s ease-in-out infinite alternate;
    z-index: 11;
}

.i-1 { top: -20px;  left: -80px;   animation-delay: 0s; }
.i-2 { top: -60px;  right: 0;      animation-delay: 1s;   font-size: 1.5rem; }
.i-3 { bottom: 20px; right: -70px; animation-delay: 0.5s; font-size: 2.2rem; }
.i-4 { bottom: -50px; left: 10px;  animation-delay: 1.5s; }
.i-5 { top: 60px;   left: -120px;  animation-delay: 0.8s; font-size: 2.5rem; }
.i-6 { top: 100px;  right: -120px; animation-delay: 1.2s; font-size: 1.8rem; }
.i-7 { top: -80px;  left: 60px;    animation-delay: 0.3s; }

@keyframes float {
    0%   { transform: translateY(0px)   scale(0.95); }
    100% { transform: translateY(-15px) scale(1.05); }
}

.marketing-footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.marketing-footer h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-transform: uppercase;
    line-height: 1.2;
}

/* ==== Lado Direito (Formulário) ==== */
.login-form-area {
    flex: 4;
    background: var(--secondary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(212,175,55,0.2);
    box-shadow: -12px 0 40px rgba(0,0,0,0.5);
    z-index: 10;
    max-width: 600px;
    min-width: 440px;
    transition: background 0.5s;
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Ícone padrão no topo do form */
.brand-head-default {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-head-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(var(--secondary-bg), var(--secondary-bg)) padding-box,
                linear-gradient(135deg, var(--accent-color), var(--accent-amber)) border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-head-icon-wrap i {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
}

.head-icon {
    font-size: 2.5rem;
}

.highlight {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700 !important;
    transition: none;
}

.form-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 2px;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 2px;
}

#login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group { display: flex; flex-direction: column; }

.form-input {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--input-text);
    outline: none;
    transition: box-shadow 0.2s, border-color 0.2s;
}

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

.form-input:focus {
    box-shadow: 0 0 0 2px rgba(212,175,55,0.35);
    border-color: var(--accent-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 24px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0; width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    height: 16px; width: 16px;
    background-color: var(--input-bg);
    border: 1px solid #ccc;
    border-radius: 4px;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px; top: 1px;
    width: 4px; height: 9px;
    border: solid var(--primary-bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after { display: block; }

.forgot-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.2s;
    font-size: 0.82rem;
}

.forgot-link:hover { opacity: 0.75; }

/* Botão Entrar — gradiente sólido */
.btn-login {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-amber));
    border: none;
    color: #0b0900;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.2s, transform 0.15s;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.btn-login:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

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

.form-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.link-secondary {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.link-secondary:hover { color: var(--accent-color); }

/* Powered by Golden Fox */
.login-brand-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.72rem;
    color: rgba(154,140,110,0.45);
    margin-top: 4px;
}

.login-brand-credit img {
    height: 16px;
    width: 16px;
    object-fit: contain;
    opacity: 0.45;
    filter: grayscale(0.3);
}

/* ==== Responsivo ==== */
@media (max-width: 992px) {
    .login-branding { flex: 4; }
    .login-form-area { flex: 5; }
    .branding-content { width: 90%; }
    .logo-text { font-size: 1.6rem; }
    .marketing-footer h2 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .login-container { flex-direction: column; }
    .login-branding { display: none; }
    .login-form-area {
        flex: 1;
        min-width: 100%;
        border-radius: 0;
        box-shadow: none;
        border-left: none;
    }
}
