.field-invalid {
    border-color: #df5b64 !important;
    box-shadow: 0 0 0 3px rgba(223, 91, 100, .13) !important;
}

.field-feedback {
    display: block;
    margin-top: 6px;
    color: #c53f49;
    font-size: 12px;
    font-weight: 600;
}

.password-feedback {
    display: block;
    min-height: 17px;
    margin-top: 6px;
    color: #738493;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.password-feedback.visible { display: block; }

.error-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 31, 48, .48);
    backdrop-filter: blur(4px);
}

.error-modal.open { display: flex; }

.error-dialog {
    position: relative;
    width: min(100%, 410px);
    padding: 36px 34px 30px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 65px rgba(12, 31, 51, .24);
    text-align: center;
}

.error-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: #d94e59;
    background: #fff0f1;
    font-size: 24px;
}

.error-dialog h2 { margin: 0 0 10px; color: #10253a; font-size: 22px; }
.error-dialog p { margin: 0 0 24px; color: #5e7082; line-height: 1.55; }

.error-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    color: #718191;
    background: transparent;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}

.error-close:hover { color: #10253a; background: #f2f5f7; }

.error-action {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: #0dbdc8;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.error-action:hover { background: #0aaab5; }

.button-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .38);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cadastro-spin .7s linear infinite;
}

.card-loading {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #fff;
    text-align: center;
}

.content { position: relative; }

.card-loading.open { display: flex; }
.card-loading > div { max-width: 300px; }
.card-loading h2 { margin: 20px 0 8px; color: #10253a; font-size: 23px; }
.card-loading p { margin: 0; color: #6c7e8d; font-size: 14px; }
.account-loader { position: relative; display: inline-block; width: 50px; height: 64px; }
.account-loader .box { position: absolute; inset: 0 0 auto; width: 50px; height: 50px; border-radius: 5px; background: #0dbdc8; animation: cadastro-box-rotate .5s linear infinite; }
.account-loader .shadow { position: absolute; top: 59px; left: 0; width: 50px; height: 5px; opacity: .1; border-radius: 50%; background: #000; animation: cadastro-shadow-scale .5s linear infinite; }

@keyframes cadastro-spin { to { transform: rotate(360deg); } }
@keyframes cadastro-box-rotate { 17% { border-bottom-right-radius: 3px; } 25% { transform: translateY(9px) rotate(22.5deg); } 50% { transform: translateY(18px) scale(1,.9) rotate(45deg); border-bottom-right-radius: 40px; } 75% { transform: translateY(9px) rotate(67.5deg); } 100% { transform: translateY(0) rotate(90deg); } }
@keyframes cadastro-shadow-scale { 50% { transform: scale(1.2,1); } }

.provider-access { margin: 30px 0 22px; text-align: center; color: #5e7082; font-size: 14px; }
.provider-access > div { display: flex; justify-content: center; gap: 14px; margin-top: 13px; }
.provider-btn { width: 56px; height: 56px; border: 0; border-radius: 50%; color: #fff; cursor: pointer; font-size: 21px; box-shadow: 0 4px 9px rgba(23, 48, 70, .22); }
.provider-btn:hover { transform: translateY(-1px); box-shadow: 0 7px 14px rgba(23, 48, 70, .28); }
.provider-btn.google { background: #df4438; }.provider-btn.facebook { background: #4267b2; }.provider-btn.microsoft { background: #2d2d2d; }.provider-btn:disabled { opacity: .65; cursor: wait; transform: none; }
.access-divider { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: #8a9aaa; font-size: 12px; }
.access-divider::before,.access-divider::after { content: ''; flex: 1; height: 1px; background: #e0e6ea; }

.team-choice { overflow: hidden; border: 1px solid var(--l); border-radius: 18px; }
.team-choice.selected { border-color: var(--p); background: #eefafb; }
.choices .team-choice > button { width: 100%; border: 0; border-radius: 0; }
.team-choice.selected > button { background: #eefafb; }
.team-attendance { margin: 0; padding: 15px 17px; border-top: 1px solid #d7f2f3; background: #f7fcfc; color: #26454a; font-size: 13px; }
.team-attendance > b { display: block; margin-bottom: 10px; }
.team-attendance label { position: relative; display: flex; align-items: center; padding: 7px 0; font-size: 13px; font-weight: 600; cursor: pointer; }
.team-attendance input { position: absolute; opacity: 0; pointer-events: none; }
.team-attendance label span { display: flex; align-items: center; gap: 9px; }
.team-attendance label span::before { content: ''; width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid #bdcbd1; border-radius: 5px; background: #fff; color: #fff; font-size: 11px; font-weight: 900; }
.team-attendance input:checked + span::before { content: '✓'; border-color: #0dbdc8; background: #0dbdc8; }

.otp-panel { max-width: 560px; margin: 0 auto; text-align: center; }
.otp-logo { display: flex; justify-content: center; margin-bottom: 24px; }
.otp-logo img { width: 190px; max-width: 60vw; height: auto; }
.otp-card { padding: 38px 38px 32px; border: 1px solid #e6ecef; border-radius: 28px; background: #fff; box-shadow: 0 24px 70px rgba(24,55,66,.12); }
.otp-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 20px; color: #08aeb5; background: #effcfc; font-size: 27px; }
.otp-panel h1 { font-size: 30px; }
.otp-lead { max-width: 440px; margin: 14px auto 26px; font-size: 15px; }
.otp-group { display: flex; justify-content: center; gap: 10px; margin: 8px 0 22px; }
.otp-cell { width: 54px; height: 60px; padding: 0 !important; border: 1px solid #e6ecef; border-radius: 14px; color: #10253a; background: #fff; text-align: center; font: 800 23px/1 Inter, sans-serif; outline: 0; }
.otp-cell:focus { border-color: #0dbdc8; box-shadow: 0 0 0 3px rgba(13, 189, 200, .14); }
.otp-group.field-invalid { border-color: transparent !important; box-shadow: none !important; }
.otp-group.field-invalid .otp-cell { border-color: #df5b64; }
.otp-resend { min-height: 27px; margin-top: 26px; color: #6b7682; text-align: center; font-size: 13px; }
.otp-resend .link { display: inline-block !important; width: auto; margin: 0 0 0 2px !important; padding: 4px; color: #0aaab5; font-size: 13px; }
.otp-resend-loader { display: none; width: 12px; height: 12px; margin-left: 5px; border: 2px solid rgba(42,157,233,.26); border-top-color: #2a9de9; border-radius: 50%; vertical-align: -2px; animation: cadastro-spin .7s linear infinite; }.otp-resend .link.sending .otp-resend-loader { display: inline-block; }
.otp-resend .link:disabled { color: #8a9aaa; cursor: default; }

@media (max-width: 440px) { .otp-group { gap: 7px; }.otp-cell { width: 44px; height: 55px; border-radius: 12px; } }

body.otp-mode { padding: 24px; background: radial-gradient(circle at top left, rgba(16,196,203,.13), transparent 30%), linear-gradient(180deg,#fff,#f3fbfb); }
body.otp-mode .shell { display: block; width: min(560px,100%); min-height: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.otp-mode .sidebar,body.otp-mode .top { display: none; }
body.otp-mode .content { padding: 0; }
body.otp-mode .otp-panel { display: block; }

/* Azul institucional Ugenda para o fluxo de cadastro. */
:root { --p: #3eb6fb; }
em { color: #2a9de9; }
.panel footer button { color: #fff; }
.choices button.selected,.choices button:hover { border-color: #3eb6fb; background: #f0f9ff; }
label>div:focus-within { border-color: #3eb6fb; box-shadow: 0 0 0 3px rgba(62,182,251,.12); }
.team-choice.selected { border-color: #3eb6fb; background: #f0f9ff; }.team-choice.selected > button { background: #f0f9ff; }
.team-attendance input:checked + span::before { border-color: #3eb6fb; background: #3eb6fb; }

/* A confirmação por SMS fica abaixo do celular, dentro da mesma etapa. */
.phone-stage { height: 176px; transition: height .2s ease; }
.phone-stage.confirming { height: 350px; }
#phoneFooter[hidden] { display: none !important; }
.phone-confirmation { margin-top: 14px; padding: 13px 15px; border: 1px solid #d8edf8; border-radius: 16px; background: #f8fcff; }
.phone-confirmation[hidden] { display: none; }
.phone-input-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: end; }
.phone-input-row label { min-width: 0; }.phone-input-row input:disabled { color: #17212b; -webkit-text-fill-color: #17212b; opacity: 1; }
.phone-confirmation-head { display: flex; align-items: center; gap: 10px; }
.phone-confirmation-head > i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #2a9de9; background: #e7f6ff; }
.phone-confirmation-head b,.phone-confirmation-head small { display: block; }
.phone-confirmation-head b { font-size: 13px; }.phone-confirmation-head small { margin-top: 3px; color: #6b7682; font-size: 11px; }
.phone-otp { display: flex; justify-content: center; gap: 7px; margin: 10px 0; }
.phone-otp-cell { width: 35px; height: 38px; padding: 0 !important; border: 1px solid #d8e5eb; border-radius: 9px; color: #10253a; background: #fff; text-align: center; font: 800 17px/1 Inter,sans-serif; outline: 0; }
.phone-otp-cell:focus { border-color: #3eb6fb; box-shadow: 0 0 0 3px rgba(62,182,251,.14); }.phone-otp.field-invalid .phone-otp-cell { border-color: #df5b64; }
.phone-confirmation-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.phone-confirmation-actions .link { visibility: visible; padding: 0; color: #2a9de9; font-size: 12px; }.phone-confirmation-actions .link:disabled { color: #8a9aaa; cursor: default; }
.phone-resend-loader { display: none; width: 12px; height: 12px; margin-left: 5px; border: 2px solid rgba(42,157,233,.26); border-top-color: #2a9de9; border-radius: 50%; vertical-align: -2px; animation: cadastro-spin .7s linear infinite; }.phone-confirmation-actions .link.sending .phone-resend-loader { display: inline-block; }
.phone-confirm-button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 9px; color: #fff; background: #3eb6fb; font: 800 12px Inter,sans-serif; cursor: pointer; }
@media(max-width:440px){.phone-stage{height:176px}.phone-stage.confirming{height:360px}.phone-input-row{grid-template-columns:1fr}.phone-otp{gap:5px}.phone-otp-cell{width:32px}.phone-confirmation-actions{gap:6px}.phone-confirmation-actions .link{font-size:11px}}
.error-action,.account-loader .box { background: #3eb6fb; }.error-action:hover { background: #2a9de9; }
.otp-icon { color: #2a9de9; background: #eef8ff; }.otp-cell:focus { border-color: #3eb6fb; box-shadow: 0 0 0 3px rgba(62,182,251,.14); }.otp-resend .link { color: #2a9de9; }

/* Campo de segmento personalizado da primeira etapa. */
.other-segment label > div { background: #fff; }
.other-segment input { min-width: 0; background: #fff !important; color: #17212b; -webkit-text-fill-color: #17212b; }
.other-segment input::placeholder { color: #8a99a3; opacity: 1; }
.other-segment input:-webkit-autofill,
.other-segment input:-webkit-autofill:hover,
.other-segment input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #fff inset; box-shadow: 0 0 0 1000px #fff inset; }
.other-segment label i { width: auto; height: auto; display: block; margin-right: 12px; padding: 0; border-radius: 0; background: transparent; color: #8a99a3; text-align: center; }
.other-segment button {
    width: auto;
    min-height: 52px;
    margin: 14px auto 0;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-radius: 14px;
    color: #fff !important;
    text-align: center;
}
.choices .other-segment button:hover,
.choices .other-segment button:focus-visible {
    border-color: #3eb6fb;
    background: #2a9de9;
    color: #fff !important;
}
.segment-hidden { display: none !important; }
.segment-pagination { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.segment-pagination button { min-height: 42px; padding: 0 16px; border: 1px solid #cfe8f8; border-radius: 12px; background: #fff; color: #2a9de9; font: 700 13px Inter,sans-serif; cursor: pointer; }
.segment-pagination button:last-child { border-color: #3eb6fb; background: #3eb6fb; color: #fff; }
.segment-pagination button:hover { background: #eef8ff; }
.segment-pagination button:last-child:hover { background: #2a9de9; }
body.otp-mode { background: radial-gradient(circle at top left, rgba(62,182,251,.13), transparent 30%), linear-gradient(180deg,#fff,#f3f9ff); }
