/**
 * RoxyCloud — auth + registration + ticket forms
 */
@import url('tokens.css');

/* ── Auth: integrado ao app shell (sidebar + topbar visíveis) ── */
body.rc-auth-flow.rc-app-shell .rc-app-main {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

body.rc-auth-flow #main-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    background: var(--rc-bg);
}

body.rc-auth-flow .master-breadcrumb {
    display: none;
}

body.rc-auth-flow #main-body > .container,
body.rc-auth-flow #main-body > .container > .row {
    margin: 0;
    max-width: none;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
}

body.rc-auth-flow #main-body > .container > .row > .primary-content {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: none !important;
    padding: 0;
    flex: 1 1 auto;
    min-height: 0;
}

body.rc-auth-flow .primary-content {
    width: 100%;
    margin: 0;
    flex: 1 1 auto;
    min-height: 0;
}

/* ── Auth centralizado na área principal ── */
.rc-auth-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    padding: clamp(1rem, 2.5vw, 1.75rem);
}

.rc-auth-center--login,
.rc-auth-center--reset {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.rc-auth-center--login .rc-auth-shell__card,
.rc-auth-center--reset .rc-auth-shell__card {
    width: 100%;
    max-width: 420px;
}

/* ── Registro wizard (big-tech style) ── */
.rc-auth-center--register {
    align-items: center;
    justify-content: center;
    padding: 1.75rem 1.5rem 2rem;
}

/* theme.css #registration { padding: 0 0 40px } zera as laterais: ID ganha de classes */
body.rc-auth-register #registration.rc-register-wizard,
.rc-auth-center--register #registration.rc-register-wizard {
    width: 100%;
    max-width: 540px;
    margin: 0 auto !important;
    padding: 2.5rem 2.75rem 2rem !important;
    border-radius: 1.125rem !important;
    border: 1px solid var(--rc-border-subtle);
    background: var(--rc-surface);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden !important;
    box-sizing: border-box;
}

.rc-register-wizard__head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.rc-register-wizard__title {
    margin: 0 0 0.4rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--rc-text);
}

.rc-register-wizard__lead {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--rc-text-muted);
}

.rc-register-wizard__progress {
    margin-bottom: 1.75rem;
}

.rc-register-wizard__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.rc-register-wizard__step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    padding: 0.65rem 0.7rem;
    border-radius: 10px;
    border: 1px solid var(--rc-border-subtle);
    background: var(--rc-bg);
    color: var(--rc-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.rc-register-wizard__step-num {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--rc-surface-raised);
    border: 1px solid var(--rc-border);
    font-size: 0.72rem;
}

.rc-register-wizard__step-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rc-register-wizard__step.is-active {
    color: var(--rc-text);
    border-color: rgba(131, 130, 255, 0.4);
    background: rgba(83, 82, 237, 0.14);
}

.rc-register-wizard__step.is-active .rc-register-wizard__step-num {
    background: var(--rc-accent-strong);
    border-color: transparent;
    color: #fff;
}

.rc-register-wizard__step.is-done {
    color: var(--rc-text-secondary);
    border-color: rgba(62, 207, 142, 0.3);
}

.rc-register-wizard__step.is-done .rc-register-wizard__step-num {
    background: rgba(62, 207, 142, 0.18);
    border-color: rgba(62, 207, 142, 0.35);
    color: #86efac;
}

.rc-register-wizard__panel {
    display: none;
}

.rc-register-wizard__panel.is-active {
    display: block;
}

.rc-register-wizard__panel-title {
    margin: 0 0 1.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rc-text-muted);
}

.rc-register-wizard__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.25rem;
    align-items: start;
}

.rc-register-wizard__row--3 {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr) minmax(0, 1fr);
    gap: 0 1.25rem;
}

.rc-register-wizard__row .form-group {
    min-width: 0;
    width: 100%;
}

.rc-register-wizard__optional {
    font-weight: 400;
    color: var(--rc-text-muted);
    text-transform: none;
    letter-spacing: 0;
}

.rc-register-wizard__password-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin: 0.25rem 0 1.5rem;
}

.rc-register-wizard__password-tools .password-strength-meter {
    flex: 1 1 160px;
    min-width: 0;
}

.rc-register-wizard__password-tools .progress {
    height: 0.4rem;
    margin-bottom: 0.4rem;
    background: var(--rc-surface-raised);
    border-radius: 999px;
}

.rc-register-wizard__marketing {
    margin: 1.25rem 0;
}

.rc-register-wizard__check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--rc-text-secondary);
    cursor: pointer;
}

.rc-register-wizard__check input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.rc-register-wizard__captcha {
    display: flex;
    justify-content: center;
    margin: 1.35rem 0;
}

.rc-register-wizard__nav {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.75rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--rc-border-subtle);
}

.rc-register-wizard__back {
    min-height: 3rem !important;
    padding: 0 1.2rem !important;
    border-radius: 10px !important;
    background: var(--rc-surface-raised) !important;
    border: 1px solid var(--rc-border) !important;
    color: var(--rc-text-secondary) !important;
}

.rc-register-wizard__next,
.rc-register-wizard__submit {
    flex: 1 1 auto;
    margin-left: auto;
    min-height: 3rem !important;
    border-radius: 0.75rem !important;
}

.rc-register-form__tos {
    margin: 1rem 0 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--rc-text-secondary);
}

.rc-register-form__tos a {
    color: var(--rc-accent);
}

/* Campos limpos: label + input (sem ícone quebrado) */
body.rc-auth-register #registration.rc-register-wizard .form-group,
.rc-register-wizard .form-group {
    margin: 0 0 1.35rem !important;
}

body.rc-auth-register #registration.rc-register-wizard .form-group:last-child,
.rc-register-wizard .form-group:last-child {
    margin-bottom: 0 !important;
}

body.rc-auth-register #registration.rc-register-wizard label.rc-auth-form__label,
.rc-register-wizard .rc-auth-form__label {
    display: block !important;
    margin: 0 0 0.55rem !important;
    padding: 0 !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: var(--rc-text-secondary) !important;
}

body.rc-auth-register #registration.rc-register-wizard .field,
body.rc-auth-register #registration.rc-register-wizard .form-control,
body.rc-auth-register #registration.rc-register-wizard .control .form-control,
body.rc-auth-register #registration.rc-register-wizard .control input,
body.rc-auth-register #registration.rc-register-wizard .control select,
.rc-register-wizard .field,
.rc-register-wizard .form-control {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 3rem !important;
    min-height: 3rem !important;
    margin: 0 !important;
    padding: 0.75rem 1.05rem !important;
    line-height: 1.4 !important;
    background: var(--rc-surface-raised) !important;
    border: 1px solid var(--rc-border) !important;
    border-radius: 0.75rem !important;
    color: var(--rc-text) !important;
    font-size: 0.9375rem !important;
    box-shadow: none !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

/* StatesDropdown.js esconde #stateinput e injeta #stateselect; o !important antigo
   forçava o input a continuar visível e os dois se sobrepunham no meio da linha */
body.rc-auth-register #registration.rc-register-wizard #stateinput[style*="display: none"],
body.rc-auth-register #registration.rc-register-wizard #stateinput[hidden],
.rc-register-wizard #stateinput[style*="display: none"],
.rc-register-wizard #stateinput[hidden] {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
}

body.rc-auth-register #registration.rc-register-wizard #stateselect,
body.rc-auth-register #registration.rc-register-wizard select.custom-select,
.rc-register-wizard #stateselect,
.rc-register-wizard select.custom-select {
    display: block !important;
    width: 100% !important;
    height: 3rem !important;
    min-height: 3rem !important;
    padding: 0.75rem 2.4rem 0.75rem 1.05rem !important;
    line-height: 1.4 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: var(--rc-surface-raised) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2371717a' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 12px 12px !important;
    border: 1px solid var(--rc-border) !important;
    border-radius: 0.75rem !important;
    color: var(--rc-text) !important;
    font-size: 0.9375rem !important;
    box-shadow: none !important;
}

body.rc-auth-register #registration.rc-register-wizard .field:focus,
body.rc-auth-register #registration.rc-register-wizard .form-control:focus,
.rc-register-wizard .field:focus,
.rc-register-wizard .form-control:focus {
    border-color: var(--rc-accent-strong) !important;
    box-shadow: 0 0 0 3px var(--rc-ring) !important;
    outline: none !important;
}

body.rc-auth-register #registration.rc-register-wizard select.field,
body.rc-auth-register #registration.rc-register-wizard select.form-control {
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2371717a' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    padding-right: 2.4rem !important;
}

body.rc-auth-register #registration.rc-register-wizard .rc-phone-field {
    margin-bottom: 0 !important;
}

body.rc-auth-register #registration.rc-register-wizard .intl-tel-input {
    display: block !important;
    width: 100% !important;
}

body.rc-auth-register #registration.rc-register-wizard .intl-tel-input .form-control,
body.rc-auth-register #registration.rc-register-wizard .intl-tel-input input[type="tel"] {
    width: 100% !important;
    height: 3rem !important;
    min-height: 3rem !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

body.rc-auth-register #registration.rc-register-wizard .intl-tel-input .selected-flag {
    height: 3rem !important;
    display: flex !important;
    align-items: center !important;
}

body.rc-auth-register #registration.rc-register-wizard .field-help-text {
    display: block;
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 0.78rem;
    color: var(--rc-text-muted);
}

body.rc-auth-register #registration.rc-register-wizard .alert {
    margin-bottom: 1.25rem;
}

body.rc-auth-register #registration.rc-register-wizard .rc-auth-shell__card-foot {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

/* Anula regras legadas de card/compactação no wizard */
body.rc-auth-register #registration.rc-register-wizard .card,
body.rc-auth-register #registration.rc-register-wizard .card-body,
body.rc-auth-register #registration.rc-register-wizard .card-title {
    all: unset;
}

body.rc-auth-register #registration.rc-register-wizard .row,
body.rc-auth-register #registration.rc-register-wizard .row > [class*="col-"] {
    margin: 0;
    padding: 0;
}

.rc-auth-shell__card {
    width: 100%;
    padding: clamp(1.25rem, 2.5vw, 1.5rem);
    border-radius: calc(var(--rc-radius) + 2px);
    border: 1px solid var(--rc-border-subtle);
    background: var(--rc-surface);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.rc-auth-shell__card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.rc-auth-shell__card-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #d8d6ff;
    background: rgba(83, 82, 237, 0.18);
    border: 1px solid rgba(131, 130, 255, 0.28);
}

.rc-auth-shell__card-icon--success {
    color: #86efac;
    background: rgba(62, 207, 142, 0.12);
    border-color: rgba(62, 207, 142, 0.28);
}

.rc-auth-shell__card-title {
    margin: 0 0 0.15rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--rc-text);
}

.rc-auth-shell__card-lead {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--rc-text-muted);
}

.rc-auth-shell__success-msg {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--rc-text-secondary);
}

.rc-auth-shell__card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--rc-border-subtle);
    text-align: center;
}

.rc-auth-shell__card-foot--register {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.rc-auth-shell__card-foot-text {
    font-size: 0.875rem;
    color: var(--rc-text-muted);
}

.rc-auth-shell__card-foot-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rc-accent) !important;
    text-decoration: none !important;
}

.rc-auth-shell__card-foot-link:hover {
    color: var(--rc-accent-hover) !important;
}

.rc-auth-shell__mobile-head {
    margin-bottom: 1.25rem;
    text-align: center;
}

.rc-auth-shell__mobile-title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--rc-text);
}

.rc-auth-shell__mobile-lead {
    margin: 0;
    font-size: 0.875rem;
    color: var(--rc-text-muted);
}

/* ── Formulário auth ── */
.rc-auth-form .form-group {
    margin-bottom: 0.8rem;
}

.rc-auth-form__label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rc-text-secondary);
}

.rc-auth-form__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.rc-auth-form__label-row .rc-auth-form__label {
    margin-bottom: 0;
}

.rc-auth-form__link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--rc-accent) !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.rc-auth-form__link:hover {
    color: var(--rc-accent-hover) !important;
}

.rc-auth-input-group .form-control {
    min-height: 2.5rem;
    background: var(--rc-surface-raised) !important;
    border: 1px solid var(--rc-border) !important;
    color: var(--rc-text) !important;
    font-size: 0.875rem;
    box-shadow: none !important;
}

.rc-auth-input-group .input-group-prepend .input-group-text {
    min-height: 2.5rem;
    background: var(--rc-surface-raised) !important;
    border: 1px solid var(--rc-border) !important;
    border-right: none !important;
    color: var(--rc-text-muted) !important;
}

.rc-auth-input-group .form-control {
    border-left: none !important;
}

.rc-auth-input-group .form-control:focus {
    border-color: var(--rc-accent-strong) !important;
    box-shadow: 0 0 0 3px var(--rc-ring) !important;
}

.rc-auth-input-group:focus-within .input-group-prepend .input-group-text {
    border-color: var(--rc-accent-strong) !important;
}

.rc-auth-input-group .input-group-append .btn-reveal-pw {
    min-height: 2.5rem;
    border: 1px solid var(--rc-border) !important;
    border-left: none !important;
    background: var(--rc-surface-raised) !important;
    color: var(--rc-text-muted) !important;
}

.rc-auth-input-group .input-group-append .btn-reveal-pw:hover {
    color: var(--rc-text) !important;
    background: var(--rc-surface-hover) !important;
}

.rc-auth-form__captcha {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

.rc-auth-form__actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.35rem;
}

.rc-auth-form__actions--solo,
.rc-auth-form__actions--dual {
    margin-top: 0.5rem;
}

.rc-auth-form__actions--dual {
    flex-direction: row;
    justify-content: flex-end;
    gap: 0.65rem;
}

.rc-auth-form__remember {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    font-size: 0.8125rem;
    color: var(--rc-text-secondary);
    cursor: pointer;
}

body.rc-auth-login .rc-auth-form__remember .form-check-input,
.rc-auth-form__remember .form-check-input {
    position: static;
    float: none;
    margin: 0;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
}

.rc-auth-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 2.5rem;
    padding: 0.7rem 1.25rem;
    border-radius: var(--rc-radius-sm) !important;
    font-weight: 600 !important;
    background: linear-gradient(105deg, var(--rc-accent-strong) 0%, var(--rc-accent-deep) 100%) !important;
    border: none !important;
    box-shadow: 0 6px 22px rgba(83, 82, 237, 0.32);
}

.rc-auth-form__submit:hover {
    filter: brightness(1.06);
    color: #fff !important;
}

.rc-auth-form__cancel {
    min-height: 2.75rem;
    border-radius: var(--rc-radius-sm) !important;
    background: var(--rc-surface-raised) !important;
    border-color: var(--rc-border) !important;
    color: var(--rc-text-secondary) !important;
}

.rc-auth-form__strength .progress {
    background: var(--rc-surface-raised);
    border-radius: 999px;
    height: 0.375rem;
}

.rc-auth-register-submit {
    margin: 0.65rem 0 0;
}

.rc-auth-register-submit .rc-auth-form__submit {
    width: auto;
    min-width: 180px;
}

/* Social login */
.rc-auth-page .providerPreLinking,
.rc-auth-page #providerLinkingMessages {
    margin-top: 1rem;
}

.rc-auth-page .social-signin-btns {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rc-border-subtle);
}

.rc-auth-page .social-signin-btns .btn {
    border-radius: var(--rc-radius-sm);
}

/* ── Layout legado (compat) ── */
body.rc-auth-login .primary-content,
body.rc-auth-register .primary-content,
body.rc-auth-reset .primary-content {
    max-width: none;
}

body.rc-app-shell.rc-auth-flow #main-body > .container {
    width: 100%;
    max-width: none;
    padding: 0;
}

body.rc-app-shell.rc-auth-register .primary-content {
    max-width: none;
    margin: 0;
}

body.rc-app-shell.rc-page-auth .primary-content {
    width: 100%;
}

.rc-auth-brand__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.rc-auth-brand__logo {
    display: block;
    max-height: 48px;
    width: auto;
    max-width: min(200px, 70vw);
    object-fit: contain;
}

/* ── Hero legado (fallback) ── */
.rc-auth-hero {
    margin-bottom: 2rem;
    text-align: center;
}

.rc-auth-hero__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rc-accent);
}

.rc-auth-hero__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--rc-text);
}

.rc-auth-hero__lead {
    margin: 0 auto;
    max-width: 32rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--rc-text-muted);
}

/* ── Login card legado ── */
.rc-auth-page {
    width: 100%;
}

.rc-auth-page .card {
    border-radius: var(--rc-radius);
    border: 1px solid var(--rc-border);
    background: var(--rc-surface);
    box-shadow: var(--rc-shadow-hover);
    overflow: hidden;
}

.rc-auth-page .card-body {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.rc-auth-page .card-footer {
    padding: 1rem clamp(1.5rem, 4vw, 2.5rem);
    background: var(--rc-surface-raised);
    border-top: 1px solid var(--rc-border);
    text-align: center;
}

.rc-auth-page .h3,
.rc-auth-page h6.h3 {
    margin-bottom: 0.25rem;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--rc-text);
}

.rc-auth-page .input-group-merge .form-control {
    border-left: none;
}

.rc-auth-page .input-group-merge .input-group-prepend .input-group-text {
    border-right: none;
}

.rc-auth-page .input-group-append .btn-reveal-pw {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    border-left: none;
    color: var(--rc-text-muted);
    cursor: pointer;
}

.rc-auth-page .btn-reveal-pw:hover,
.rc-auth-page .btn-reveal-pw:focus,
.rc-auth-page .btn-reveal-pw:active {
    color: var(--rc-text);
    background: var(--rc-surface-hover) !important;
    border-color: var(--rc-border) !important;
    box-shadow: none !important;
    outline: none !important;
}

/* ── Registro — cards e seções ── */
body.rc-auth-register #registration .card {
    margin-bottom: 0;
    border-radius: var(--rc-radius-sm);
    border: 1px solid var(--rc-border);
    background: var(--rc-surface);
    box-shadow: none;
    overflow: hidden;
}

body.rc-auth-register #registration .card-body {
    padding: 0.85rem 0.95rem !important;
}

body.rc-auth-register #registration .card-title {
    margin: 0 0 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--rc-text-muted);
    line-height: 1.3;
}

body.rc-auth-register #registration .form-group {
    margin-bottom: 0.55rem;
}

body.rc-auth-register #registration .row {
    margin-left: -0.35rem;
    margin-right: -0.35rem;
}

body.rc-auth-register #registration .row > [class*="col-"] {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

body.rc-auth-register #registration .field,
body.rc-auth-register #registration .form-control,
body.rc-theme #registration .field,
body.rc-theme #registration .form-control {
    display: block;
    width: 100%;
    height: auto;
    min-height: 2.35rem;
    padding: 0.45rem 0.7rem;
    background: var(--rc-surface-raised) !important;
    border: 1px solid var(--rc-border) !important;
    border-radius: var(--rc-radius-sm) !important;
    color: var(--rc-text) !important;
    font-size: 0.8125rem;
    line-height: 1.35;
    box-shadow: none !important;
    transition: border-color 0.15s, box-shadow 0.15s;
}

body.rc-auth-register #registration .prepend-icon .field,
body.rc-theme #registration .prepend-icon .field {
    padding-left: 2.35rem !important;
}

body.rc-auth-register #registration .field:focus,
body.rc-auth-register #registration .form-control:focus,
body.rc-theme #registration .field:focus,
body.rc-theme #registration .form-control:focus {
    border-color: var(--rc-accent-strong) !important;
    box-shadow: 0 0 0 3px var(--rc-ring) !important;
    outline: none;
}

body.rc-auth-register #registration .field::placeholder,
body.rc-theme #registration .field::placeholder {
    color: var(--rc-text-muted);
}

body.rc-auth-register #registration .prepend-icon .field-icon {
    height: 2.35rem;
    line-height: 2.35rem;
    width: 2.35rem;
    color: var(--rc-text-muted);
    pointer-events: none;
}

body.rc-auth-register #registration .prepend-icon .field-icon i {
    font-size: 0.75rem;
    color: var(--rc-text-muted);
}

body.rc-auth-register #registration .rc-phone-field {
    margin-bottom: 0.55rem;
}

body.rc-auth-register #registration .rc-phone-field .rc-form-label {
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
}

body.rc-auth-register #registration .password-strength-meter {
    margin-bottom: 0;
}

body.rc-auth-register #registration .password-strength-meter .small {
    margin-bottom: 0;
    font-size: 0.7rem;
}

body.rc-auth-register #registration .rc-register-form__footer .g-recaptcha,
body.rc-auth-register #registration .rc-register-form__footer .rc-form-captcha {
    margin: 0;
}

body.rc-auth-register #registration .rc-register-form__footer .rc-auth-register-submit {
    margin: 0;
    margin-left: auto;
}

body.rc-auth-register #registration .field[disabled],
body.rc-auth-register #registration .field[readonly],
body.rc-auth-register #registration .form-control[disabled],
body.rc-auth-register #registration .form-control[readonly] {
    background: var(--rc-surface) !important;
    color: var(--rc-text-muted) !important;
    opacity: 1;
}

body.rc-auth-register #registration select.field,
body.rc-auth-register #registration select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2371717a' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    padding-right: 2rem !important;
}

body.rc-auth-register #registration .field-help-text {
    color: var(--rc-text-muted);
    font-size: 0.75rem;
}

body.rc-auth-register #registration .control .form-control,
body.rc-auth-register #registration .control input,
body.rc-auth-register #registration .control select,
body.rc-auth-register #registration .control textarea {
    background: var(--rc-surface-raised) !important;
    border: 1px solid var(--rc-border) !important;
    color: var(--rc-text) !important;
    border-radius: var(--rc-radius-sm);
}

body.rc-auth-register #registration label:not(.field-icon):not(.form-check) {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--rc-text-secondary);
}

body.rc-auth-register #registration .btn-primary {
    min-width: 200px;
    padding: 0.75rem 2rem;
    background: var(--rc-btn-primary-bg);
    border-color: var(--rc-btn-primary-border);
    color: #fff;
    font-weight: 500;
    border-radius: var(--rc-radius-sm);
}

body.rc-auth-register #registration .btn-primary:hover {
    background: var(--rc-btn-primary-hover);
    border-color: var(--rc-btn-primary-hover);
}

body.rc-auth-register #registration .progress {
    background: var(--rc-surface-raised);
    border-radius: 999px;
    height: 0.375rem;
}

body.rc-auth-register #registration .form-check {
    color: var(--rc-text-secondary);
    font-size: 0.875rem;
}

body.rc-auth-register #registration .form-check a {
    color: var(--rc-accent);
}

/* Telefone intl-tel-input */
body.rc-auth-register #registration .rc-phone-field {
    margin-bottom: 1rem;
}

body.rc-auth-register #registration .rc-phone-field .rc-form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--rc-text-secondary);
}

body.rc-auth-register #registration .intl-tel-input {
    display: block;
    width: 100%;
}

body.rc-auth-register #registration .intl-tel-input .form-control,
body.rc-auth-register #registration .intl-tel-input input[type="tel"] {
    width: 100% !important;
    min-height: 2.75rem;
    background: var(--rc-surface-raised) !important;
    border: 1px solid var(--rc-border) !important;
    border-radius: var(--rc-radius-sm) !important;
    color: var(--rc-text) !important;
    font-size: 0.875rem;
    box-shadow: none !important;
}

body.rc-auth-register #registration .intl-tel-input.separate-dial-code.iti-sdc-2 input,
body.rc-auth-register #registration .intl-tel-input.separate-dial-code.iti-sdc-2 input[type="tel"] {
    padding-left: 66px !important;
}

body.rc-auth-register #registration .intl-tel-input.separate-dial-code.iti-sdc-3 input,
body.rc-auth-register #registration .intl-tel-input.separate-dial-code.iti-sdc-3 input[type="tel"] {
    padding-left: 74px !important;
}

body.rc-auth-register #registration .intl-tel-input.separate-dial-code.iti-sdc-4 input,
body.rc-auth-register #registration .intl-tel-input.separate-dial-code.iti-sdc-4 input[type="tel"] {
    padding-left: 82px !important;
}

body.rc-auth-register #registration .intl-tel-input.separate-dial-code.iti-sdc-5 input,
body.rc-auth-register #registration .intl-tel-input.separate-dial-code.iti-sdc-5 input[type="tel"] {
    padding-left: 90px !important;
}

body.rc-auth-register #registration .intl-tel-input .selected-flag {
    background: transparent;
    border-right: 1px solid var(--rc-border);
    padding-left: 0.5rem;
}

body.rc-auth-register #registration .intl-tel-input .selected-dial-code {
    color: var(--rc-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

body.rc-auth-register #registration .intl-tel-input .country-list {
    background: var(--rc-surface-raised);
    border: 1px solid var(--rc-border);
    color: var(--rc-text);
    border-radius: var(--rc-radius-sm);
    box-shadow: var(--rc-shadow-hover);
}

body.rc-auth-register #registration .intl-tel-input .country-list .country.highlight {
    background: var(--rc-accent-soft);
}

body.rc-auth-register #registration .intl-tel-input .country-list .country:hover {
    background: var(--rc-surface-hover);
}

/* Autofill do navegador */
body.rc-auth-register #registration input:-webkit-autofill,
body.rc-auth-register #registration input:-webkit-autofill:hover,
body.rc-auth-register #registration input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--rc-surface-raised) inset !important;
    -webkit-text-fill-color: var(--rc-text) !important;
    caret-color: var(--rc-text);
    border-color: var(--rc-border) !important;
}

/* ── Formulário de ticket ── */
.rc-form-card {
    border-radius: var(--rc-radius);
    border: 1px solid var(--rc-border);
    background: var(--rc-surface);
    box-shadow: var(--rc-shadow);
    margin-bottom: 2rem;
}

.rc-form-card__body {
    padding: clamp(1.5rem, 3vw, 2rem) !important;
}

.rc-form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--rc-text-secondary);
}

.rc-form-hint {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: var(--rc-text-muted);
}

.rc-form-group--message {
    margin-top: 0.5rem;
}

.rc-form-captcha {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.rc-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding-top: 0.5rem;
}

.rc-form-actions .btn-primary {
    min-width: 140px;
    background: var(--rc-btn-primary-bg);
    border-color: var(--rc-btn-primary-border);
    color: #fff;
}

.rc-form-actions .btn-primary:hover {
    background: var(--rc-btn-primary-hover);
}

body.rc-page-tickets .rc-ticket-form .form-control,
body.rc-page-tickets .rc-form-card .form-control,
body.rc-page-tickets .rc-form-card .custom-select {
    min-height: 2.75rem;
    background: var(--rc-surface-raised) !important;
    border: 1px solid var(--rc-border) !important;
    border-radius: var(--rc-radius-sm) !important;
    color: var(--rc-text) !important;
    font-size: 0.875rem;
}

body.rc-page-tickets .rc-ticket-form .form-control:focus,
body.rc-page-tickets .rc-form-card .form-control:focus {
    border-color: var(--rc-accent-strong) !important;
    box-shadow: 0 0 0 3px var(--rc-ring) !important;
}

body.rc-page-tickets .rc-ticket-form textarea.form-control {
    min-height: 10rem;
    line-height: 1.55;
    resize: vertical;
}

body.rc-page-tickets .rc-ticket-form .form-control.disabled,
body.rc-page-tickets .rc-ticket-form .form-control:disabled {
    background: var(--rc-surface) !important;
    color: var(--rc-text-muted) !important;
}

body.rc-page-tickets .extra-padding {
    padding: clamp(1.5rem, 3vw, 2rem) !important;
}

/* Fluxo Abrir Ticket: largura útil full (sem coluna magra) */
body.rc-page-tickets .rc-tickets-page,
body.rc-page-tickets .rc-tickets-page--form,
body.rc-page-tickets .rc-ticket-form {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

body.rc-page-tickets .rc-form-card {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

body.rc-page-tickets .rc-form-card__body {
    padding: clamp(1.5rem, 3vw, 2rem) !important;
    box-sizing: border-box;
}

/* Hero dentro do card */
body.rc-page-tickets .rc-form-card .rc-page-hero--in-card,
body.rc-page-tickets .rc-form-card .rc-page-hero {
    margin: 0 0 1.5rem;
    padding: 0 0 1.35rem;
    border-bottom: 1px solid var(--rc-border);
}

body.rc-page-tickets .rc-form-card .rc-page-hero__lead {
    max-width: none;
}

/* Rows alinhadas: mesmas margens dos campos full-width */
body.rc-app-shell.rc-page-tickets #main-body .rc-form-card .row,
body.rc-page-tickets .rc-form-card .row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
}

body.rc-app-shell.rc-page-tickets #main-body .rc-form-card .row > [class*="col-"],
body.rc-page-tickets .rc-form-card .row > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex: 1 1 calc(50% - 0.625rem);
    max-width: calc(50% - 0.625rem);
    min-width: 0;
}

body.rc-page-tickets .rc-form-card .row > .col-md-4,
body.rc-page-tickets .rc-form-card .row > .col-md-5,
body.rc-page-tickets .rc-form-card .row > .col-md-3 {
    flex: 1 1 0;
    max-width: none;
}

@media (max-width: 767px) {
    body.rc-app-shell.rc-page-tickets #main-body .rc-form-card .row > [class*="col-"],
    body.rc-page-tickets .rc-form-card .row > [class*="col-"] {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

body.rc-page-tickets .rc-form-card .form-group {
    width: 100%;
    margin-bottom: 1.15rem;
}

body.rc-page-tickets .rc-form-card .row > .form-group {
    margin-bottom: 0;
}

body.rc-page-tickets .rc-form-card .form-control,
body.rc-page-tickets .rc-form-card .custom-select,
body.rc-page-tickets .rc-form-card .md-editor,
body.rc-page-tickets .rc-form-card .input-group,
body.rc-page-tickets .rc-form-card .custom-file {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* ── Markdown editor (ticket + geral) — ver também roxycloud.css ── */
body.rc-page-tickets .rc-form-card,
body.rc-page-tickets .rc-form-card__body,
body.rc-page-tickets .rc-ticket-form {
    overflow-x: clip;
}

body.rc-page-tickets .rc-form-captcha {
    max-width: 100%;
    overflow: hidden;
}

body.rc-page-tickets .rc-form-captcha iframe {
    max-width: 100%;
}

/* ── Upload de arquivo ── */
body.rc-theme .custom-file-label {
    background: var(--rc-surface-raised) !important;
    border: 1px solid var(--rc-border) !important;
    color: var(--rc-text-muted) !important;
    border-radius: var(--rc-radius-sm) 0 0 var(--rc-radius-sm) !important;
    font-size: 0.875rem;
    height: 2.75rem;
    line-height: 1.6;
    padding: 0.5rem 0.875rem;
}

body.rc-theme .custom-file-input:focus ~ .custom-file-label {
    border-color: var(--rc-accent-strong) !important;
    box-shadow: none;
}

body.rc-theme .input-group .custom-file-input {
    height: 2.75rem;
}

body.rc-theme .attachment-group .input-group-append .btn {
    height: 2.75rem;
    border-color: var(--rc-border);
    background: var(--rc-surface-raised);
    color: var(--rc-text-secondary);
}

body.rc-theme .attachment-group .input-group-append .btn:hover {
    background: var(--rc-surface-hover);
    color: var(--rc-text);
}

/* ── Captcha ── */
body.rc-theme .rc-form-captcha .g-recaptcha,
body.rc-theme #registration .g-recaptcha {
    display: inline-block;
}

@media (max-width: 991px) {
    .rc-auth-center {
        align-items: flex-start;
        padding: 1rem 0.85rem 1.5rem;
    }

    .rc-auth-center--login .rc-auth-shell__card,
    .rc-auth-center--reset .rc-auth-shell__card,
    .rc-auth-center--register .rc-register-wizard {
        max-width: none;
    }

    body.rc-auth-register #registration.rc-register-wizard,
    .rc-auth-center--register #registration.rc-register-wizard {
        padding: 1.75rem 1.5rem 1.5rem !important;
        border-radius: 1rem !important;
    }

    .rc-register-wizard__row,
    .rc-register-wizard__row--3 {
        grid-template-columns: 1fr;
    }

    .rc-register-wizard__step-label {
        font-size: 0.7rem;
    }

    .rc-register-wizard__nav {
        flex-wrap: wrap;
    }

    .rc-register-wizard__back,
    .rc-register-wizard__next,
    .rc-register-wizard__submit {
        flex: 1 1 auto;
        margin-left: 0;
    }

    .rc-form-actions {
        flex-direction: column;
    }

    .rc-form-actions .btn {
        width: 100%;
    }

    .rc-auth-form__actions--dual {
        flex-direction: column-reverse;
    }

    .rc-auth-form__actions--dual .btn {
        width: 100%;
    }
}

/* ── Overrides finais do wizard (sempre por último) ── */
body.rc-auth-register #registration.rc-register-wizard {
    padding: 2.5rem 2.75rem 2rem !important;
    border-radius: 1.125rem !important;
    overflow: hidden !important;
}

body.rc-auth-register #registration.rc-register-wizard .btn-primary,
body.rc-auth-register #registration.rc-register-wizard .rc-register-wizard__next,
body.rc-auth-register #registration.rc-register-wizard .rc-register-wizard__submit,
body.rc-auth-register #registration.rc-register-wizard .rc-register-wizard__back {
    border-radius: 0.75rem !important;
}

body.rc-auth-register #registration.rc-register-wizard .intl-tel-input,
body.rc-auth-register #registration.rc-register-wizard .intl-tel-input .form-control,
body.rc-auth-register #registration.rc-register-wizard .intl-tel-input input[type="tel"] {
    border-radius: 0.75rem !important;
}

body.rc-auth-register #registration.rc-register-wizard .rc-register-wizard__step {
    border-radius: 0.75rem;
}

@media (max-width: 991px) {
    body.rc-auth-register #registration.rc-register-wizard {
        padding: 1.75rem 1.5rem 1.5rem !important;
        border-radius: 1rem !important;
    }
}





