/* ── RESET ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #082B2B;
}

/* ── LAYOUT PRINCIPAL ──────────────────────────────────────────────────── */
.kl-wrap {
    display: flex;
    min-height: 100vh;
}

/* ── LADO ESQUERDO ─────────────────────────────────────────────────────── */
.kl-left {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: #fff;
}

.kl-box {
    width: 100%;
    max-width: 340px;
}

/* ── BRAND ─────────────────────────────────────────────────────────────── */
.kl-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 28px;
}

.kl-brand__logo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #0D7377;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kl-brand__name {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #1a2a2a;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
}

.kl-brand__sub {
    display: block;
    font-size: 10px;
    color: #0D7377;
    letter-spacing: 3px;
    font-weight: 600;
    margin-top: 2px;
}

/* ── ALERTAS ───────────────────────────────────────────────────────────── */
.kl-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    margin-bottom: 16px;
}

.kl-alert--error {
    background: #fef0ef;
    border: 1px solid #f5c6c2;
    color: #c0392b;
}

.kl-alert--success {
    background: #eafaf1;
    border: 1px solid #a9dfbf;
    color: #1e8449;
}

/* ── TÍTULOS ───────────────────────────────────────────────────────────── */
.kl-title {
    font-size: 21px;
    font-weight: 700;
    color: #1a2a2a;
    margin-bottom: 4px;
}

.kl-subtitle {
    font-size: 13px;
    color: #6b8787;
    margin-bottom: 22px;
}

/* ── SSO BOTÕES ────────────────────────────────────────────────────────── */
.kl-sso {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 9px;
    font-family: inherit;
}

.kl-sso--ms {
    background: #0D7377;
    color: #fff;
    border: none;
}

.kl-sso--ms:hover:not(:disabled) { background: #14A097; }

.kl-sso--google {
    background: #fff;
    color: #3c4043;
    border: 1px solid #d0dede;
}

.kl-sso--google:hover:not(:disabled) {
    background: #f8f8f8;
    border-color: #aaa;
}

.kl-sso:active:not(:disabled) { transform: scale(0.98); }

.kl-sso:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.kl-sso-hint {
    font-size: 11px;
    color: #6b8787;
    text-align: center;
    margin-bottom: 10px;
}

/* ── DIVISOR ───────────────────────────────────────────────────────────── */
.kl-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    color: #6b8787;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.4px;
}

.kl-divider::before,
.kl-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2ecec;
}

/* ── CAMPOS ────────────────────────────────────────────────────────────── */
.kl-field {
    margin-bottom: 13px;
}

.kl-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6b8787;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.kl-input {
    width: 100%;
    padding: 10px 13px;
    border-radius: 8px;
    border: 1px solid #d0dede;
    background: #f4f9f9;
    color: #1a2a2a;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.kl-input:focus {
    border-color: #0D7377;
    box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.12);
    background: #fff;
}

.kl-input-wrap {
    position: relative;
}

.kl-input-wrap .kl-input {
    padding-right: 42px;
}

.kl-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b8787;
    display: flex;
    align-items: center;
    padding: 4px;
    transition: color 0.15s;
}

.kl-eye:hover { color: #0D7377; }

.kl-field-err {
    display: none;
    font-size: 11px;
    color: #c0392b;
    margin-top: 4px;
}

.kl-field--error .kl-input {
    border-color: #c0392b;
}

.kl-field--error .kl-field-err {
    display: block;
}

/* ── LINHA LEMBRAR / ESQUECI ───────────────────────────────────────────── */
.kl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.kl-check-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #6b8787;
    cursor: pointer;
}

.kl-check {
    accent-color: #0D7377;
    width: 14px;
    height: 14px;
}

.kl-link {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #0D7377;
    font-weight: 600;
    padding: 0;
    font-family: inherit;
    text-decoration: none;
}

.kl-link:hover { text-decoration: underline; }

/* ── BOTÃO PRINCIPAL ───────────────────────────────────────────────────── */
.kl-btn-primary {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #0D7377;
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
    font-family: inherit;
}

.kl-btn-primary:hover:not(:disabled) { background: #14A097; }
.kl-btn-primary:active:not(:disabled) { transform: scale(0.98); }
.kl-btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }

/* Spinner */
@keyframes kl-spin { to { transform: rotate(360deg); } }

.kl-spinner {
    display: none;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: kl-spin 0.7s linear infinite;
}

.kl-btn-primary--loading .kl-spinner { display: block; }
.kl-btn-primary--loading .kl-btn-label { display: none; }

/* ── SIGNUP ────────────────────────────────────────────────────────────── */
.kl-signup {
    text-align: center;
    font-size: 13px;
    color: #6b8787;
}

/* ── LADO DIREITO ──────────────────────────────────────────────────────── */
.kl-right {
    width: 50%;
    background: #082B2B;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kl-right__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.kl-right__content {
    position: relative;
    z-index: 1;
    padding: 48px 40px;
    max-width: 320px;
    text-align: center;
}

.kl-right__tag {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(27, 201, 190, 0.55);
    font-weight: 600;
    margin-bottom: 10px;
}

.kl-right__title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 10px;
}

.kl-right__title span { color: #1BC9BE; }

.kl-right__desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.75;
    margin-bottom: 24px;
}

/* ── FEATURES ──────────────────────────────────────────────────────────── */
.kl-features { margin-bottom: 20px; }

.kl-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
    border: 0.5px solid rgba(27, 201, 190, 0.18);
    border-radius: 10px;
    padding: 13px 15px;
    margin-bottom: 10px;
}

.kl-feature__icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: rgba(13, 115, 119, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.kl-feature__title {
    font-size: 12px;
    font-weight: 700;
    color: #e0f5f4;
    margin-bottom: 2px;
}

.kl-feature__desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.5;
}

.kl-right__footer {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ── RESPONSIVO ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .kl-right { display: none; }
    .kl-left  { width: 100%; padding: 36px 24px; }
}
