/**
 * CONSTRONEX — login e cadastro (admin / prestador)
 */

/* ---- Layout geral ---- */
.login-wrap,
.register-wrap {
    min-height: 100dvh;
}

.login-right {
    max-width: 420px;
}

/* Painel do formulário */
.login-right-wrap.bg-white,
.register-right-wrap.bg-white {
    background: #012c6c !important;
    color: #f8fafc;
}

.login-right-wrap .c1,
.register-right-wrap .c1 {
    color: #fe8a09 !important;
}

.login-right-wrap > .login-right > p,
.register-right-wrap > .register-right > p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.login-right-wrap .badge-primary,
.register-right-wrap .badge-primary {
    background: rgba(254, 138, 9, 0.15) !important;
    color: #fe8a09 !important;
    border: 1px solid rgba(254, 138, 9, 0.35);
    font-weight: 600;
}

.login-right-wrap .text-center.fz-12,
.register-right-wrap .text-center.fz-12 {
    color: rgba(255, 255, 255, 0.75);
}

.constron-auth-tagline strong.c1 {
    color: #fe8a09;
}

/* ---- Campos do formulário (sem form-floating) ---- */
.constron-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.constron-auth-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92) !important;
}

.constron-auth-input {
    position: relative;
    display: flex;
    align-items: center;
}

.constron-auth-input > .material-icons:first-child {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #64748b;
    pointer-events: none;
    z-index: 1;
}

.constron-auth-input__control {
    width: 100%;
    min-height: 48px;
    padding: 0.65rem 2.75rem 0.65rem 2.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff !important;
    color: #012c6c !important;
    font-size: 16px;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(1, 44, 108, 0.06);
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-text-fill-color: #012c6c;
}

.constron-auth-input__control::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
    -webkit-text-fill-color: #94a3b8;
}

.constron-auth-input__control:focus {
    outline: none;
    border-color: #fe8a09;
    box-shadow: 0 0 0 3px rgba(254, 138, 9, 0.25);
}

.constron-auth-input__toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0;
}

.constron-auth-input__toggle:hover {
    color: #012c6c;
    background: rgba(1, 44, 108, 0.06);
}

.constron-auth-input__toggle .material-icons {
    font-size: 20px;
}

.constron-auth-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-top: 0.25rem;
}

.constron-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    cursor: pointer;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9) !important;
    user-select: none;
}

.constron-auth-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #fe8a09;
    flex-shrink: 0;
}

.constron-auth-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fe8a09 !important;
    text-decoration: none;
    white-space: nowrap;
}

.constron-auth-link:hover {
    text-decoration: underline;
}

.login-right-wrap .btn--primary,
.register-right-wrap .btn--primary {
    min-height: 48px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    text-transform: none;
    letter-spacing: 0;
}

.constron-provider-signup {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem 0.875rem;
    border: 2px solid #fe8a09;
    border-radius: 12px;
    background: rgba(254, 138, 9, 0.12);
    color: #fff !important;
    text-decoration: none !important;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(254, 138, 9, 0.35);
}

.constron-provider-signup:hover,
.constron-provider-signup:focus,
.constron-provider-signup:active {
    color: #fff !important;
    text-decoration: none !important;
    background: rgba(254, 138, 9, 0.2);
}

.constron-provider-signup__icon {
    flex: 0 0 auto;
    color: #fe8a09;
    font-size: 26px;
}

.constron-provider-signup__content {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 0.05rem;
    line-height: 1.25;
}

.constron-provider-signup__content strong {
    font-size: 0.93rem;
    font-weight: 700;
}

.constron-provider-signup__content span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.77rem;
}

.constron-provider-signup__arrow {
    flex: 0 0 auto;
    color: #fe8a09;
    font-size: 22px;
}

/* ---- Cadastro de prestador ---- */
.constron-register-heading {
    margin: 1rem 0 1.5rem;
}

.constron-register-heading__eyebrow {
    display: inline-block;
    margin-bottom: 0.4rem;
    color: #fe8a09;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.constron-register-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 1.65rem;
    font-weight: 750;
}

.constron-register-heading p {
    max-width: 520px;
    margin: 0.45rem auto 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.9rem;
    line-height: 1.45;
}

#register-vertical-steps.wizard.vertical {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
}

#register-vertical-steps.wizard .steps {
    margin: 0 0 1.5rem;
    padding: 0;
}

#register-vertical-steps.wizard .steps ul {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    margin: 0;
    padding: 0;
}

#register-vertical-steps.wizard .steps ul::before {
    position: absolute;
    z-index: 0;
    top: 17px;
    right: 9%;
    left: 9%;
    height: 2px;
    background: rgba(255, 255, 255, 0.18);
    content: "";
}

#register-vertical-steps.wizard .steps ul::after {
    display: none !important;
}

#register-vertical-steps.wizard .steps ul li,
#register-vertical-steps.wizard .steps ul li:not(:first-child) {
    z-index: 1;
    width: auto;
    padding: 0;
}

#register-vertical-steps.wizard .steps ul li::after,
#register-vertical-steps.wizard .steps ul li:not(:first-child)::after {
    display: none;
}

#register-vertical-steps.wizard .steps ul li a {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
    padding: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    opacity: 1;
}

#register-vertical-steps.wizard .steps ul .number {
    display: grid;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: #012c6c;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.75rem;
    font-weight: 700;
}

#register-vertical-steps.wizard .steps ul li.current a {
    color: #fff;
}

#register-vertical-steps.wizard .steps ul li.current a .number {
    border-color: #fe8a09;
    background: #fe8a09;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(254, 138, 9, 0.18);
}

#register-vertical-steps.wizard .steps ul li.done a {
    color: rgba(255, 255, 255, 0.82);
}

#register-vertical-steps.wizard .steps ul li.done a .number {
    border-color: #22c55e;
    background: #22c55e;
    color: transparent;
}

#register-vertical-steps.wizard .steps ul li.done a .number::after {
    position: absolute;
    color: #fff;
    content: "✓";
    font-size: 0.9rem;
}

#register-vertical-steps.wizard .content {
    width: 100%;
    min-height: 0;
    margin: 0;
}

#register-vertical-steps.wizard .content > section {
    width: 100%;
    padding: 0;
}

.constron-step-heading {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.constron-step-heading > .material-icons {
    display: grid;
    width: 42px;
    min-width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: rgba(254, 138, 9, 0.16);
    color: #fe8a09;
    font-size: 23px;
}

.constron-step-heading h4,
.constron-contact-heading h5 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.constron-step-heading p,
.constron-contact-heading p {
    margin: 0.15rem 0 0;
    color: rgba(255, 255, 255, 0.67);
    font-size: 0.76rem;
    line-height: 1.4;
}

.constron-contact-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.25rem 0 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.constron-same-data {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.45rem;
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
}

.constron-same-data input {
    width: 18px;
    height: 18px;
    accent-color: #fe8a09;
}

.register-right-wrap .form-control,
.register-right-wrap .form-select,
.register-right-wrap .input-group-text {
    min-height: 52px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background-color: #fff !important;
    color: #12345b !important;
    font-size: 0.95rem;
    -webkit-text-fill-color: #12345b;
}

.register-right-wrap .form-control::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
    -webkit-text-fill-color: #94a3b8;
}

.register-right-wrap .form-floating > label {
    color: #64748b !important;
    opacity: 1;
}

.register-right-wrap .form-floating > label::after {
    background: #fff !important;
}

.constron-field-label {
    display: block;
    margin-bottom: 0.4rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    font-weight: 600;
}

.register-right-wrap .form-control:focus,
.register-right-wrap .form-select:focus {
    border-color: #fe8a09;
    box-shadow: 0 0 0 3px rgba(254, 138, 9, 0.2);
}

.register-right-wrap .iti {
    width: 100%;
}

.register-right-wrap .iti__selected-country {
    pointer-events: none;
}

.register-right-wrap .mb-30 {
    margin-bottom: 1rem !important;
}

.constron-coordinates {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.constron-upload-label {
    color: #fff;
    font-weight: 600;
}

.constron-upload-label small {
    display: block;
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}

.constron-step-note {
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
}

#register-vertical-steps-p-3 .border.rounded {
    border-color: rgba(255, 255, 255, 0.16) !important;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

#register-vertical-steps-p-3 .form-check-label,
#register-vertical-steps-p-3 .form-check-label small {
    color: #fff !important;
}

#register-vertical-steps-p-3 .input-group-text {
    border-radius: 8px 0 0 8px;
    color: #012c6c !important;
    font-weight: 700;
}

#register-vertical-steps-p-3 .input-group .form-control {
    min-height: 42px;
    border-radius: 0 8px 8px 0;
}

#register-vertical-steps.wizard.vertical .actions {
    position: sticky;
    z-index: 10;
    bottom: 0;
    grid-column: 1;
    margin-top: 1rem;
    padding: 0.8rem 0;
    background: linear-gradient(180deg, rgba(1, 44, 108, 0), #012c6c 30%);
}

#register-vertical-steps.wizard .actions ul {
    gap: 0.75rem;
    justify-content: flex-end;
    margin: 0;
}

#register-vertical-steps.wizard .actions a {
    min-width: 120px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
}

#register-vertical-steps.wizard .actions li:last-child a,
#register-vertical-steps.wizard .actions li:nth-last-child(2) a {
    border-color: #fe8a09;
    background: #fe8a09;
}

/* ---- Mobile ---- */
@media (max-width: 991px) {
    .login-wrap,
    .register-wrap {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .login-left,
    .register-left {
        display: flex !important;
        block-size: auto !important;
        height: auto !important;
        flex-shrink: 0;
        padding: 1rem;
        background-size: cover;
    }

    .login-left .tf-box,
    .register-left .tf-box {
        height: auto !important;
        width: 100%;
        max-width: 360px;
        margin: 0 auto !important;
        padding: 0.75rem !important;
        gap: 0.5rem !important;
    }

    .login-left .login-logo,
    .register-left .login-logo {
        max-height: 48px;
        max-width: 180px;
        object-fit: contain;
    }

    .constron-auth-tagline {
        font-size: 0.95rem !important;
        line-height: 1.35;
        margin: 0;
        padding: 0 !important;
    }

    .login-right-wrap,
    .register-right-wrap {
        flex: 1;
        min-height: 0;
    }

    .login-right,
    .register-right {
        max-width: 100%;
        padding: 1rem 1.25rem 0.75rem !important;
    }

    .login-right > .d-flex.flex-column {
        margin-top: 0.5rem !important;
        margin-bottom: 1rem !important;
    }

    .login-right .constron-auth-form {
        gap: 0.75rem;
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 575px) {
    .login-left,
    .register-left {
        padding: 0.75rem 0.75rem 0.5rem;
    }

    .constron-auth-tagline {
        font-size: 0.88rem !important;
    }

    .login-right .d-flex.justify-content-between.align-items-start,
    .register-right .d-flex.justify-content-between.align-items-start {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
        margin-bottom: 1.25rem !important;
        margin-top: 0 !important;
    }

    .login-right .badge,
    .register-right .badge {
        font-size: 0.68rem;
        padding: 0.35rem 0.5rem;
        line-height: 1.3;
    }

    .constron-auth-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .constron-auth-link {
        white-space: normal;
    }

    .constron-register-heading {
        margin: 0.5rem 0 1.25rem;
    }

    .constron-register-heading h2 {
        font-size: 1.35rem;
    }

    .constron-register-heading p {
        font-size: 0.8rem;
    }

    #register-vertical-steps.wizard .steps {
        margin-bottom: 1.25rem;
    }

    #register-vertical-steps.wizard .steps ul {
        flex-direction: initial;
        gap: 0.2rem;
    }

    #register-vertical-steps.wizard .steps ul li a {
        gap: 0.3rem;
        font-size: 0.58rem;
    }

    #register-vertical-steps.wizard .steps ul .number {
        width: 30px;
        min-width: 30px;
        height: 30px;
    }

    #register-vertical-steps.wizard .steps ul::before {
        top: 15px;
    }

    #register-vertical-steps.wizard .content {
        margin-top: 0;
    }

    .constron-contact-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    #register-vertical-steps.wizard .actions ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #register-vertical-steps.wizard .actions li,
    #register-vertical-steps.wizard .actions a {
        width: 100%;
        min-width: 0;
    }
}

/* Autofill do navegador — mantém texto visível */
.constron-auth-input__control:-webkit-autofill,
.constron-auth-input__control:-webkit-autofill:hover,
.constron-auth-input__control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #012c6c !important;
    caret-color: #012c6c;
}
