/* Central do Cliente — Login Page */

:root {
    --brand-dark:    #0c5d5d;
    --brand-mid:     #0a4747;
    --brand-teal:    #0c8079;
    --brand-light:   #1fc0c0;
    --text-dark:     #10302f;
    --text-mid:      #33514f;
    --text-soft:     #67807f;
    --text-muted:    #9aabab;
    --border:        #dde7e7;
    --bg:            #f6f8f8;
    --white:         #ffffff;
    --accent-light:  #8af0e6;
    --accent-pale:   #bfe6e3;
    --radius-input:  13px;
    --radius-btn:    13px;
    --radius-icon:   12px;
    --h-input:       52px;
    --h-btn:         54px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

.login-body {
    font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    min-height: 100vh;
    display: flex;
}

/* ── Wrapper ─────────────────────────────────────────────── */
.login-wrap {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ── Brand Panel (esquerda) ───────────────────────────────── */
.brand-panel {
    flex: 1;
    min-height: 100vh;
    background: linear-gradient(150deg, var(--brand-dark) 0%, var(--brand-mid) 52%, #0d6e63 120%);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 52px 52px 36px;
    position: relative;
    overflow: hidden;
}

.brand-panel::before {
    content: '';
    position: absolute;
    top: -120px; right: -80px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(31,192,192,.18) 0%, transparent 70%);
    pointer-events: none;
}

.brand-panel::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -60px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(138,240,230,.10) 0%, transparent 70%);
    pointer-events: none;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 32px;
}

.brand-logo-icon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    width: 32px;
    height: 32px;
}

.brand-logo-icon span {
    display: block;
    background: var(--accent-light);
    border-radius: 50%;
}

.brand-logo-name {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -.3px;
    color: #fff;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.11);
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 100px;
    padding: 6px 14px 6px 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent-pale);
    margin-bottom: 40px;
    width: -webkit-fit-content;
    width: fit-content;
}

.brand-badge svg { flex-shrink: 0; opacity: .85; }

.brand-content { flex: 1; }

.brand-headline {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 14px;
    max-width: 380px;
}

.brand-sub {
    font-size: 14.5px;
    font-weight: 400;
    color: rgba(255,255,255,.65);
    line-height: 1.6;
    max-width: 360px;
    margin-bottom: 44px;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--radius-icon);
}

.brand-feature-icon svg { opacity: .9; }

.brand-feature-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.brand-feature-text span {
    font-size: 12.5px;
    color: rgba(255,255,255,.55);
    line-height: 1.4;
}

.brand-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.brand-footer-copy {
    font-size: 12px;
    color: rgba(255,255,255,.40);
}

.brand-footer-links { display: flex; gap: 16px; }

.brand-footer-links a {
    font-size: 12px;
    color: rgba(255,255,255,.45);
    text-decoration: none;
    transition: color .2s;
}

.brand-footer-links a:hover { color: rgba(255,255,255,.80); }

/* ── Form Panel (direita) ─────────────────────────────────── */
.form-panel {
    width: 560px;
    min-width: 560px;
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
}

.form-wrap {
    width: 100%;
    max-width: 430px;
}

.form-header { margin-bottom: 28px; }

.form-title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 27px;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 7px;
}

.form-subtitle {
    font-size: 14.5px;
    color: var(--text-soft);
    line-height: 1.55;
}

/* Error */
.login-error {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    color: #b91c1c;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
}

.login-error svg { flex-shrink: 0; }

/* Fields */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
    letter-spacing: .01em;
}

.field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 15px;
    display: flex;
    align-items: center;
    color: var(--text-muted);
    pointer-events: none;
}

.field-input {
    width: 100%;
    height: var(--h-input);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-input);
    padding: 0 48px;
    font-family: 'Manrope', sans-serif;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-dark);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

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

.field-input:focus {
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3.5px rgba(12,128,121,.10);
}

.btn-toggle-senha {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: color .18s;
    line-height: 0;
}

.btn-toggle-senha:hover { color: var(--text-soft); }

/* Checkbox */
.checkbox-row {
    display: -webkit-inline-flex;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-top: 4px;
}

.checkbox-row input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    min-width: 18px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, border-color .15s;
}

.checkbox-row input:checked ~ .checkbox-custom {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.checkbox-custom svg { opacity: 0; transition: opacity .15s; }

.checkbox-row input:checked ~ .checkbox-custom svg { opacity: 1; }

.checkbox-label {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-soft);
    -webkit-user-select: none;
    user-select: none;
}

/* Submit */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: var(--h-btn);
    background: var(--brand-dark);
    color: #fff;
    border: none;
    border-radius: var(--radius-btn);
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    letter-spacing: .01em;
    transition: background .18s, transform .12s;
}

.btn-submit:hover { background: var(--brand-mid); }
.btn-submit:active { transform: scale(.985); }

/* Divider */
.form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 20px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Support card */
.support-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    text-decoration: none;
    transition: border-color .18s, box-shadow .18s;
}

.support-card:hover {
    border-color: var(--brand-teal);
    box-shadow: 0 2px 14px rgba(12,128,121,.10);
    text-decoration: none;
}

.support-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #e5faf7;
    border-radius: var(--radius-icon);
}

.support-card-text strong {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 2px;
}

.support-card-text span {
    font-size: 12px;
    color: var(--text-muted);
}

.support-card-arrow {
    margin-left: auto;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

/* Terms */
.form-terms {
    margin-top: 22px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.7;
}

.form-terms a {
    color: var(--text-soft);
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 2px;
    transition: color .18s;
}

.form-terms a:hover { color: var(--brand-teal); }

/* Mobile logo */
.mobile-logo {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}

.mobile-logo-icon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    width: 28px;
    height: 28px;
}

.mobile-logo-icon span {
    display: block;
    background: var(--brand-dark);
    border-radius: 50%;
}

.mobile-logo-name {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
}

/* ── Responsivo ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .brand-panel { display: none; }

    .form-panel {
        width: 100%;
        min-width: 0;
        padding: 36px 24px 52px;
        align-items: flex-start;
    }

    .form-wrap { max-width: 100%; }

    .mobile-logo { display: flex; }
}
