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

:root {
    --brand-1: #A23F5D;
    --brand-2: #7E355E;
    --brand-3: #662B4C;
    --brand-4: #4D2039;
    --brand-5: #7F2762;

    --dark-nav: #1f2937;
    --dark-2: #374151;

    --form-bg: #ffffff;
    --input-bg: #f8fafc;
    --input-border: #e2e8f0;
    --input-icon: #94a3b8;

    --text-main: #1e293b;
    --text-sub: #64748b;
    --text-muted: #94a3b8;
    --text-white: #ffffff;

    --t2: all 0.2s ease;
    --t3: all 0.3s ease;
    --t4: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    --btn-color:        #C8386A;
    --btn-hover:        #B02F5C;
    --shadow-brand:      0 4px 20px rgba(200, 56, 106, 0.40);
    --shadow-brand-hover: 0 8px 32px rgba(200, 56, 106, 0.54);
}

/* === LAYOUT BASE === */

html {
    overflow-x: hidden;
    height: 100%;
}

body {
    height: 100%;
    overflow-x: hidden;
}

.main-content {
    align-items: stretch;
    padding: 0;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

nav.sidebar {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.container {
    display: flex;
    width: 100%;
    flex: 1;
    height: 100%;
    min-height: unset;
}

/* === PAINEL ESQUERDO — formulário === */

.left {
    width: 50%;
    height: 100%;
    min-height: unset;
    background: var(--form-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(60px, 8vh, 120px) clamp(32px, 6vw, 80px) clamp(32px, 5vh, 56px);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Logo no topo do painel */
.logo {
    position: absolute;
    top: clamp(24px, 4vh, 48px);
    left: clamp(32px, 6vw, 80px);
    width: clamp(38px, 3.6vw, 52px);
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.logo:hover {
    opacity: 0.7;
    transform: scale(0.97);
}

/* === CONTEÚDO DO FORMULÁRIO === */

.form-body {
    display: flex;
    flex-direction: column;
    max-width: 380px;
    width: 100%;
}

.left h1 {
    font-weight: 700;
    font-size: clamp(22px, 2.6vw, 38px);
    color: var(--text-main);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: clamp(13px, 0.95vw, 15px);
    color: var(--text-sub);
    font-weight: 400;
    line-height: 1.65;
    margin-top: clamp(8px, 1vh, 12px);
}

/* === ERRO DE LOGIN === */

.login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #dc2626;
    background: #fff1f2;
    border: 1px solid #fecaca;
    border-left: 3px solid #dc2626;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 16px;
}

/* === FORMULÁRIO === */

form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(14px, 1.8vh, 20px);
    margin-top: clamp(24px, 3.5vh, 40px);
    width: 100%;
}

.input-box {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
}

label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: 0.01em;
}

.input-field {
    position: relative;
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: 12px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--input-icon);
    pointer-events: none;
    z-index: 2;
}

.input-field input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 13px 44px 13px 42px;
    font-size: 14px;
    color: var(--text-main);
    outline: none;
    border-radius: 12px;
}

.input-field input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

/* ícone do olho (senha) */
#btn-senha {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 19px;
    color: var(--input-icon);
    cursor: pointer;
    z-index: 2;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

#btn-senha:hover {
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.05);
}

.input-field:focus-within {
    border-color: var(--brand-1);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(162, 63, 93, 0.1);
}

/* === LEMBRAR-ME === */

.remember-box {
    display: flex;
    align-items: center;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
}

.remember-label span {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-sub);
}

.remember-box input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 17px;
    height: 17px;
    min-width: 17px;
    border-radius: 5px;
    border: 1.5px solid var(--input-border);
    background: var(--input-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remember-box input[type="checkbox"]:checked {
    background: var(--brand-1);
    border-color: var(--brand-1);
}

.remember-box input[type="checkbox"]:checked::after {
    content: '✔';
    color: #fff;
    font-size: 10px;
    line-height: 1;
}

/* === BOTÃO === */

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: var(--brand-5);
    color: var(--text-white);
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-brand);
    margin-top: clamp(4px, 1vh, 8px);
}

.btn-login i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.btn-login:hover {
    background: var(--btn-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand-hover);
}

.btn-login:hover i {
    transform: translateX(5px);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: var(--shadow-brand);
}

/* === PAINEL DIREITO — clean white === */

.right {
    width: 50%;
    height: 100%;
    min-height: unset;
    background:
        radial-gradient(ellipse at 18% 6%,  rgba(172, 66, 92,  0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 82% 94%, rgba(134, 58, 99,  0.06) 0%, transparent 45%),
        #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* anéis concêntricos em tom de marca, muito sutis */
.right::before {
    content: '';
    position: absolute;
    width: min(500px, 64%);
    aspect-ratio: 1;
    border-radius: 50%;
    top: -15%;
    right: -15%;
    box-shadow:
        0 0 0 1px  rgba(152, 63, 103, 0.10),
        0 0 0 55px rgba(152, 63, 103, 0.04),
        0 0 0 110px rgba(152, 63, 103, 0.02);
    pointer-events: none;
}

.right::after {
    content: '';
    position: absolute;
    width: min(300px, 40%);
    aspect-ratio: 1;
    border-radius: 50%;
    bottom: -10%;
    left: -8%;
    box-shadow:
        0 0 0 1px  rgba(134, 58, 99, 0.08),
        0 0 0 48px rgba(134, 58, 99, 0.03);
    pointer-events: none;
}

/* SVG decorativo em tons da marca (cápsulas, streaks, dot-grid) */
.right-deco {
    position: absolute;
    inset: 0;
    background: url('../img/login-deco.svg') top center / 100% auto no-repeat;
    pointer-events: none;
    z-index: 0;
}

.right-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(20px, 3.5vh, 40px);
    padding: 40px;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
}

.hero-img {
    width: min(90%, 460px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 16px 36px rgba(134, 58, 99, 0.14));
}

.right-tagline {
    font-size: clamp(14px, 1.15vw, 15px);
    color: var(--text-sub);
    text-align: center;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

/* === TABLET LANDSCAPE / LAPTOP PEQUENO (< 1100px) === */

@media (max-width: 1100px) {
    .left {
        padding-left: clamp(28px, 5vw, 52px);
        padding-right: clamp(28px, 5vw, 52px);
    }

    .logo {
        left: clamp(28px, 5vw, 52px);
    }

    .form-body {
        max-width: 340px;
    }
}

/* === TABLET PORTRAIT e abaixo (< 900px) — single column === */

@media (max-width: 900px) {
    .right {
        display: none;
    }

    .left {
        width: 100%;
        height: 100%;
        min-height: unset;
        align-items: center;
        text-align: center;
        padding: clamp(88px, 14vh, 120px) clamp(24px, 8vw, 52px) clamp(40px, 6vh, 60px);
    }

    .logo {
        left: 50%;
        transform: translateX(-50%);
        width: clamp(36px, 8vw, 46px);
        top: clamp(20px, 3.5vh, 36px);
    }

    .logo:hover {
        transform: translateX(-50%) scale(0.97);
        opacity: 0.7;
    }

    .form-body {
        max-width: min(100%, 420px);
        align-items: center;
    }

    .subtitle {
        font-size: clamp(13px, 2vw, 15px);
    }

    form {
        align-items: center;
        max-width: 100%;
        width: 100%;
    }

    .login-error {
        text-align: left;
        width: 100%;
    }
}

/* === MOBILE (< 480px) === */

@media (max-width: 480px) {
    .left {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* === MOBILE PEQUENO (< 360px) === */

@media (max-width: 360px) {
    .left h1 {
        font-size: 20px;
    }

    .subtitle {
        font-size: 12px;
    }

    .btn-login {
        font-size: 12px;
        padding: 12px;
    }
}

/* === TELAS GRANDES (> 1440px) === */

@media (min-width: 1440px) {
    .left {
        padding-left: clamp(80px, 8vw, 130px);
    }

    .logo {
        left: clamp(80px, 8vw, 130px);
    }

    .form-body {
        max-width: 420px;
    }
}
