﻿@charset "UTF-8";

:root {
    --cd-primary: #2563eb;
    --cd-primary-dark: #1e40af;
    --cd-primary-light: #60a5fa;
    --cd-left-bg-1: #0d1c48;
    --cd-left-bg-2: #17357f;
    --cd-left-bg-3: #2f59e4;
    --cd-right-bg: #f6f8fc;
    --cd-text-dark: #0f172a;
    --cd-text-soft: #64748b;
    --cd-text-light: rgba(255, 255, 255, 0.88);
    --cd-text-light-soft: rgba(255, 255, 255, 0.74);
    --cd-border: #dbe3ea;
    --cd-input-bg: #ffffff;
    --cd-shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
    --cd-shadow-mobile: 0 12px 30px rgba(15, 23, 42, 0.10);
    --cd-radius-xl: 28px;
    --cd-radius-lg: 18px;
    --cd-radius-md: 12px;
    --cd-transition: all .25s ease;
}

html,
body.cd-login-page {
    margin: 0;
    min-height: 100vh;
    font-family: "Public Sans", sans-serif;
    background: #eef3f8;
    color: var(--cd-text-dark);
}

.cd-login-page * {
    box-sizing: border-box;
}

.cd-login-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* LEFT */
.cd-login-brand-side {
    background: linear-gradient(135deg, var(--cd-left-bg-1) 0%, var(--cd-left-bg-2) 55%, var(--cd-left-bg-3) 100%);
    padding: 28px 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

    .cd-login-brand-side::after {
        content: "";
        position: absolute;
        right: -140px;
        top: 50%;
        transform: translateY(-50%);
        width: 460px;
        height: 460px;
        background: radial-gradient(circle, rgba(96,165,250,0.30) 0%, rgba(96,165,250,0.12) 35%, transparent 72%);
        filter: blur(55px);
        pointer-events: none;
    }

.cd-brand-top {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 3;
}

.cd-brand-top-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.cd-brand-top-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

    .cd-brand-top-text strong {
        font-size: 1rem;
        font-weight: 800;
        letter-spacing: .02em;
        color: #fff;
    }

    .cd-brand-top-text span {
        font-size: .84rem;
        color: var(--cd-text-light-soft);
        font-weight: 500;
    }

.cd-brand-content {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 3;
}

.cd-brand-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 330px;
    position: relative;
    margin-bottom: 8px;
}

.cd-brand-logo {
    width: min(560px, 94%);
    max-width: 560px;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.15));
}

.cd-shape {
    position: absolute;
    display: block;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(4px);
    z-index: 1;
    pointer-events: none;
}

.cd-shape-1 {
    width: 220px;
    height: 220px;
    left: 40px;
    top: 30px;
    transform: rotate(-10deg);
}

.cd-shape-2 {
    width: 140px;
    height: 140px;
    left: 270px;
    top: 82px;
    transform: rotate(-8deg);
}

.cd-shape-3 {
    width: 170px;
    height: 170px;
    left: 150px;
    top: 160px;
    transform: rotate(10deg);
}

.cd-brand-carousel {
    position: relative;
    min-height: 150px;
    z-index: 3;
}

.cd-brand-carousel-item {
    display: none;
    animation: fadeSlide .35s ease;
}

    .cd-brand-carousel-item.active {
        display: block;
    }

.cd-brand-description {
    margin: 0 auto;
    max-width: 560px;
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--cd-text-light);
    font-weight: 400;
    position: relative;
    z-index: 3;
}

.cd-brand-dots {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 3;
}

    .cd-brand-dots button {
        width: 12px;
        height: 12px;
        border-radius: 999px;
        border: 0;
        background: rgba(255, 255, 255, 0.26);
        cursor: pointer;
        transition: var(--cd-transition);
        padding: 0;
    }

        .cd-brand-dots button.active {
            width: 28px;
            background: linear-gradient(90deg, var(--cd-primary) 0%, var(--cd-primary-light) 100%);
        }

        .cd-brand-dots button:hover {
            transform: translateY(-1px);
        }

.cd-brand-footer {
    font-size: .92rem;
    color: var(--cd-text-light-soft);
    font-weight: 500;
    position: relative;
    z-index: 3;
}

/* RIGHT */
.cd-login-form-side {
    background: var(--cd-right-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 34px;
}

.cd-login-form-card {
    width: 100%;
    max-width: 460px;
}

.cd-login-form-header {
    margin-bottom: 28px;
}

    .cd-login-form-header h2 {
        margin: 0 0 10px;
        font-size: clamp(2rem, 3vw, 3rem);
        line-height: 1.08;
        font-weight: 800;
        color: var(--cd-text-dark);
        letter-spacing: -.02em;
    }

    .cd-login-form-header p {
        margin: 0;
        font-size: 1rem;
        line-height: 1.65;
        color: var(--cd-text-soft);
    }

.cd-login-form {
    width: 100%;
}

.cd-form-group {
    margin-bottom: 20px;
}

    .cd-form-group label {
        display: block;
        margin-bottom: 8px;
        font-size: .98rem;
        font-weight: 600;
        color: var(--cd-text-soft);
    }

.cd-input {
    width: 100%;
    height: 58px;
    padding: 0 18px;
    border-radius: var(--cd-radius-md);
    border: 1px solid var(--cd-border);
    background: var(--cd-input-bg);
    color: var(--cd-text-dark);
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    transition: var(--cd-transition);
    box-shadow: 0 2px 0 rgba(0,0,0,0.01);
}

    .cd-input::placeholder {
        color: #96a39f;
        font-weight: 400;
    }

    .cd-input:hover {
        border-color: #c9d5d1;
    }

    .cd-input:focus {
        border-color: var(--cd-primary);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    }

.cd-form-row {
    margin: 6px 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cd-check-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .96rem;
    color: var(--cd-text-soft);
    cursor: pointer;
    user-select: none;
}

    .cd-check-wrap input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--cd-primary);
    }

.cd-btn-login {
    width: 100%;
    height: 58px;
    border: 0;
    border-radius: var(--cd-radius-md);
    background: linear-gradient(135deg, var(--cd-primary) 0%, var(--cd-primary-dark) 100%);
    color: #fff;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    transition: var(--cd-transition);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.18);
}

    .cd-btn-login:hover {
        transform: translateY(-1px);
        box-shadow: 0 16px 34px rgba(37, 99, 235, 0.24);
    }

    .cd-btn-login:focus {
        outline: none;
        box-shadow: 0 16px 34px rgba(37, 99, 235, 0.24), 0 0 0 4px rgba(37, 99, 235, 0.12);
    }

.cd-login-form .alert {
    margin-top: 16px;
    border-radius: 12px;
    font-size: .95rem;
}

.cd-login-form .text-danger.small {
    display: inline-block;
    margin-top: 6px;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TABLET */
@media (max-width: 1100px) {
    .cd-login-wrapper {
        grid-template-columns: 1fr;
    }

    .cd-login-brand-side {
        min-height: auto;
        padding: 22px 20px 18px;
    }

    .cd-brand-content {
        margin-top: 16px;
        max-width: 560px;
    }

    .cd-brand-logo-box {
        min-height: 210px;
        margin-bottom: 12px;
    }

    .cd-brand-logo {
        width: min(420px, 94%);
    }

    .cd-shape-1 {
        width: 150px;
        height: 150px;
        left: 40px;
        top: 20px;
    }

    .cd-shape-2 {
        width: 100px;
        height: 100px;
        left: 220px;
        top: 48px;
    }

    .cd-shape-3 {
        width: 118px;
        height: 118px;
        left: 120px;
        top: 96px;
    }

    .cd-brand-description {
        font-size: 1rem;
        line-height: 1.65;
        max-width: 500px;
    }

    .cd-brand-carousel {
        min-height: 120px;
    }

    .cd-login-form-side {
        padding: 18px 20px 28px;
        align-items: flex-start;
    }

    .cd-login-form-card {
        max-width: 560px;
        background: #ffffff;
        border-radius: 22px;
        padding: 24px 20px;
        box-shadow: var(--cd-shadow-mobile);
    }

    .cd-login-form-header {
        margin-bottom: 20px;
    }
}

/* MOBILE */
@media (max-width: 576px) {
    .cd-login-wrapper {
        display: block;
        background: var(--cd-right-bg);
    }

    .cd-login-brand-side {
        padding: 18px 16px 14px;
        border-radius: 0;
    }

    .cd-brand-top {
        gap: 10px;
    }

    .cd-brand-top-icon {
        width: 34px;
        height: 34px;
    }

    .cd-brand-top-text strong {
        font-size: .88rem;
    }

    .cd-brand-top-text span {
        font-size: .72rem;
    }

    .cd-brand-content {
        margin-top: 10px;
        max-width: 100%;
    }

    .cd-brand-logo-box {
        min-height: 150px;
        margin-bottom: 8px;
    }

    .cd-brand-logo {
        width: min(320px, 94%);
    }

    /* shapes menores e mais altos para não invadir texto */
    .cd-shape-1 {
        width: 104px;
        height: 104px;
        left: 14px;
        top: 12px;
    }

    .cd-shape-2 {
        width: 68px;
        height: 68px;
        left: 136px;
        top: 36px;
    }

    .cd-shape-3 {
        width: 84px;
        height: 84px;
        left: 78px;
        top: 70px;
    }

    .cd-brand-carousel {
        min-height: 120px;
        padding: 0 2px;
    }

    .cd-brand-description {
        font-size: .95rem;
        line-height: 1.58;
        max-width: 100%;
        padding: 0 6px;
    }

    .cd-brand-dots {
        margin-top: 16px;
    }

    .cd-brand-footer {
        margin-top: 12px;
        font-size: .85rem;
    }

    .cd-login-form-side {
        display: block;
        padding: 12px 16px 16px;
        background: var(--cd-right-bg);
    }

    .cd-login-form-card {
        max-width: 100%;
        background: #ffffff;
        border-radius: 20px;
        padding: 20px 16px 18px;
        box-shadow: var(--cd-shadow-mobile);
        margin-top: 0;
    }

    .cd-login-form-header h2 {
        font-size: 1.85rem;
        margin-bottom: 8px;
    }

    .cd-login-form-header p {
        font-size: .94rem;
        line-height: 1.55;
    }

    .cd-form-group {
        margin-bottom: 18px;
    }

        .cd-form-group label {
            font-size: .92rem;
        }

    .cd-input {
        height: 52px;
        font-size: .96rem;
        border-radius: 12px;
    }

    .cd-form-row {
        margin: 4px 0 18px;
    }

    .cd-check-wrap {
        font-size: .92rem;
    }

    .cd-btn-login {
        height: 54px;
        font-size: 1rem;
        border-radius: 12px;
    }
}
