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

/* BODY */
body {
    font-family: "Nunito", sans-serif;
    color: #fff;
    background: radial-gradient(circle at 30% 20%, #0b1f44, #020617 70%);
}

/* LAYOUT */
.layout {
    display: flex;
    height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 38%;
    background: linear-gradient(180deg, #0b1220, #0a0f1c);
    border-right: 1px solid #1B2A44;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    padding: 60px 40px;
}

/* CONTEÚDO CENTRAL */
.sidebar-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    gap: 18px;

    margin: auto 0; /* centralização real */
}

/* LOGO */
.logo {
    height: auto;

    /* remove fundo visual (caso tenha) */
    mix-blend-mode: lighten;
}

/* TÍTULO */
.sidebar h1 {
    font-size: 32px;
    font-weight: 800;
}

/* TAGLINE */
.tagline {
    font-size: 11px;
    letter-spacing: 2px;
    color: #94a3b8;
}

/* DESCRIÇÃO */
.description {
    margin-top: 20px;
    font-size: 14px;
    color: #8fa3c8;
    max-width: 260px;
    line-height: 1.6;
}

/* FOOTER */
.sidebar-footer {
    font-size: 11px;
    color: #64748b;
}

/* CONTEÚDO DIREITO */
.content {
    width: 62%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CARD LOGIN */
.login-box {
    width: 100%;
    max-width: 380px;
}

/* FORM */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;

    padding: 35px;
    border-radius: 20px;

    background: rgba(13, 21, 35, 0.75);
    border: 1px solid rgba(91, 124, 255, 0.15);

    backdrop-filter: blur(12px);
}

/* TÍTULO */
form h2 {
    margin-bottom: 10px;
}

/* INPUT */
input {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #1B2A44;
    background: #101b2f;
    color: #fff;
    outline: none;
}

/* BOTÃO */
button {
    margin-top: 20px;
    padding: 12px;
    border-radius: 10px;
    border: none;

    background: linear-gradient(90deg, #5f9cff, #7b5cff);
    color: #fff;
    font-weight: 800;

    cursor: pointer;
}

/* LINK */
.link-container {
    text-align: center;
    margin-top: 15px;
}

.link-container a {
    color: #7b5cff;
    font-weight: bold;
}

.modal {
    display: none;
}
/* ================= TABLET ================= */
@media (max-width: 1024px) {

    .sidebar {
        width: 45%;
        padding: 40px 25px;
    }

    .content {
        width: 55%;
    }

    .sidebar h1 {
        font-size: 26px;
    }

    .description {
        font-size: 13px;
        max-width: 220px;
    }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .layout {
        flex-direction: column;
        height: auto; /* remove travamento */
    }

    .sidebar {
        width: 100%;
        padding: 30px 20px;
        border-right: none;
        border-bottom: 1px solid #1B2A44;
    }

    .sidebar-content {
        gap: 12px;
    }

    .sidebar h1 {
        font-size: 22px;
    }

    .tagline {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .description {
        font-size: 13px;
        max-width: 100%;
    }

    .sidebar-footer {
        margin-top: 20px;
    }

    .content {
        width: 100%;
        padding: 30px 15px;
    }

    .login-box {
        max-width: 100%;
    }

    form {
        padding: 25px;
    }

    input {
        font-size: 14px;
    }

    button {
        font-size: 14px;
    }
}

/* ================= MOBILE PEQUENO ================= */
@media (max-width: 480px) {

    .sidebar {
        padding: 25px 15px;
    }

    .sidebar h1 {
        font-size: 18px;
    }

    .description {
        font-size: 12px;
    }

    form {
        padding: 20px;
        border-radius: 15px;
    }

    input {
        padding: 9px;
        font-size: 13px;
    }

    button {
        padding: 10px;
        font-size: 13px;
    }
}

/* Interface de acesso alinhada ao design claro do sistema. */
:root {
    --bg: #f3f2ef;
    --surface: #ffffff;
    --text: #1f2328;
    --muted: #667085;
    --border: #dfe3e8;
    --primary: #0a66c2;
    --primary-hover: #004182;
}

body { background: var(--bg); color: var(--text); line-height: 1.5; }
.layout { min-height: 100vh; height: auto; }
.sidebar {
    background: #eef5fb;
    border-color: var(--border);
    color: var(--text);
}
.logo { width: min(280px, 80%); mix-blend-mode: normal; }
.sidebar-footer { color: var(--muted); font-size: .8125rem; }
.content { background: var(--bg); }
.login-box { max-width: 410px; }
form {
    gap: 12px;
    padding: 36px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 2px 10px rgba(16,24,40,.06);
    backdrop-filter: none;
}
form h2 { color: var(--text); font-size: 1.75rem; line-height: 1.25; }
label { color: #344054; font-size: .875rem; font-weight: 650; }
input {
    min-height: 44px;
    border-color: #c9cfd7;
    border-radius: 7px;
    background: #fff;
    color: var(--text);
    font-size: .9375rem;
}
input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,102,194,.12); }
button {
    min-height: 44px;
    border: 1px solid var(--primary);
    border-radius: 999px;
    background: var(--primary);
    font-size: .9375rem;
    transition: background .15s, border-color .15s;
}
button:hover { border-color: var(--primary-hover); background: var(--primary-hover); }
.link-container a { color: var(--primary); font-size: .9rem; }
.link-container a:hover { color: var(--primary-hover); text-decoration: underline; }

@media (max-width: 768px) {
    .sidebar { padding: 24px 20px; }
    .logo { width: 170px; }
    .content { padding: 28px 16px; }
}

@media (max-width: 480px) {
    form { padding: 24px 20px; border-radius: 10px; }
    form h2 { font-size: 1.5rem; }
}

/* Tema final de acesso: mantém a identidade escura do produto. */
:root {
    --bg: #080d15;
    --surface: #0f1724;
    --text: #edf1f7;
    --muted: #929eb1;
    --border: #263347;
    --primary: #326fbf;
    --primary-hover: #407dca;
}
body, .content { background: var(--bg); color: var(--text); }
.sidebar { border-color: var(--border); background: #0b121d; color: var(--text); }
.sidebar-footer { color: var(--muted); }
form {
    border-color: var(--border);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: none;
}
form h2 { color: var(--text); }
label { color: #c5ccda; }
input { border-color: #34435a; border-radius: 7px; background: #0b131f; color: var(--text); }
input:focus { border-color: #4f8fe8; box-shadow: 0 0 0 3px rgba(79,143,232,.12); }
button { border-color: var(--primary); border-radius: 7px; background: var(--primary); }
button:hover { border-color: var(--primary-hover); background: var(--primary-hover); }
.link-container a { color: #76a9ec; }
.link-container a:hover { color: #9ac1f2; }

.login-box select{width:100%;padding:12px 14px;margin-bottom:16px;border:1px solid #344760;border-radius:8px;background:#0d1724;color:#edf3fb;font:inherit}
.login-box p{line-height:1.5;color:#667085}
.login-box select optgroup { background: #111d2c; color: #9fc5f6; font-weight: 800; }
.login-box select option { padding: 6px; background: #0d1724; color: #edf3fb; font-weight: 500; }
.new-category-field {
    display: flex;
    padding: 14px;
    margin: 4px 0 2px;
    border: 1px solid #2b3b52;
    border-radius: 8px;
    background: #0c1522;
    flex-direction: column;
    gap: 7px;
}
.new-category-field[hidden] { display: none; }
.new-category-field label { margin: 0; }
.new-category-field input { width: 100%; margin: 0; box-sizing: border-box; }
.new-category-field small { display: block; margin: 0; color: #8190a5; font-size: .75rem; line-height: 1.45; }
.category-mode-button {
    width: 100%;
    min-height: 40px;
    margin: 8px 0 0;
    border: 1px dashed #42638a !important;
    background: transparent !important;
    color: #8fc0ff !important;
}
.category-mode-button:hover { background: #122238 !important; }
.login-box form > button[type="submit"] { margin-top: 14px; }

.registration-privacy-notice {
    margin: 6px 0;
    color: #9fb0c6;
    font-size: .76rem;
    line-height: 1.45;
}

.registration-privacy-notice a {
    color: #8fc0ff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Ações secundárias da tela de login. */
.login-secondary-actions {
    display: grid;
    margin-top: 10px;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.login-secondary-actions a {
    display: inline-flex;
    min-height: 44px;
    padding: 10px 14px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #3a5270;
    border-radius: 8px;
    background: #0b1420;
    color: #d3dfef;
    font-size: .85rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .14);
    transition: border-color .16s ease, background .16s ease, color .16s ease,
        box-shadow .16s ease, transform .16s ease;
}

.login-secondary-actions a i {
    font-size: 1rem;
    line-height: 1;
}

.login-secondary-actions a:hover {
    border-color: #5b91d4;
    background: #14263d;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
    transform: translateY(-1px);
}

.login-secondary-actions a:focus-visible {
    outline: 3px solid rgba(79, 143, 232, .35);
    outline-offset: 2px;
}

.login-secondary-actions a:active {
    box-shadow: 0 3px 8px rgba(0, 0, 0, .16);
    transform: translateY(0);
}

.login-secondary-actions .login-create-account {
    border-color: #3e83d6;
    background: linear-gradient(135deg, #326fbf, #3d7fd0);
    color: #fff;
    box-shadow: 0 7px 18px rgba(50, 111, 191, .24);
}

.login-secondary-actions .login-create-account:hover {
    border-color: #68a8f3;
    background: linear-gradient(135deg, #3d7fd0, #4a8ddd);
    box-shadow: 0 9px 22px rgba(50, 111, 191, .32);
}

.login-secondary-actions .login-view-plans {
    border-color: #415b7b;
    background: #0b1420;
}

@media (max-width: 380px) {
    .login-secondary-actions { grid-template-columns: 1fr; }
}
/* Tipografia nativa usada pela interface do Instagram. */
html, body, button, input, select, textarea { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.registration-website-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}
