*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

.ge-auth-body {
    min-height: 100vh;
    background: #f9fafb;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: #111827;
    -webkit-font-smoothing: antialiased;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    -ms-content-zooming: none;
    -ms-touch-action: manipulation;
}

@media (max-width: 767px) {
    .ge-auth-body input,
    .ge-auth-body select,
    .ge-auth-body textarea {
        font-size: 16px;
    }
}

.ge-auth-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 1.5rem;
}

@media (min-width: 640px) {
    .ge-auth-screen {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.ge-auth-header {
    margin: 0 auto;
    width: 100%;
    max-width: 28rem;
    text-align: center;
}

.ge-auth-logo {
    display: block;
    margin: 0 auto;
    height: 3rem;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.ge-auth-logo-app-wrap + .ge-auth-title {
    margin-top: 1.1rem;
}

.ge-auth-title {
    margin: 1.5rem 0 0;
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 800;
    color: #111827;
}

.ge-auth-subtitle {
    margin: 0.5rem 0 0;
    font-size: 1rem;
    line-height: 1.25rem;
    color: #4b5563;
}

.ge-auth-link {
    font-weight: 500;
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.ge-auth-link:hover {
    color: #6366f1;
    text-decoration: underline;
}

.ge-auth-card-wrap {
    margin: 2rem auto 0;
    width: 100%;
    max-width: 28rem;
}

.ge-auth-card {
    background: #fff;
    padding: 2rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

@media (min-width: 640px) {
    .ge-auth-card {
        padding: 2rem 2.5rem;
        border-radius: 0.5rem;
    }
}

.ge-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem 0.875rem;
    border-radius: 0.375rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.875rem;
    line-height: 1.4;
}

.ge-auth-form {
    display: flex;
    flex-direction: column;
}

.ge-auth-field + .ge-auth-field {
    margin-top: 1.5rem;
}

.ge-auth-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #374151;
}

.ge-auth-input {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: #fff;
    color: #111827;
    font-size: 0.875rem;
    line-height: 1.25rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.ge-auth-input::placeholder {
    color: #9ca3af;
}

.ge-auth-input:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.45);
}

.ge-auth-forgot {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.ge-auth-forgot a {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.ge-auth-submit-wrap {
    margin-top: 1.5rem;
}

.ge-auth-submit {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    background: #4f46e5;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.ge-auth-submit:hover {
    background: #6366f1;
}

.ge-auth-submit:focus {
    outline: none;
    border-color: #4338ca;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35);
}

.ge-auth-submit:active {
    background: #4338ca;
}

.ge-auth-back {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.ge-auth-back a {
    font-weight: 500;
}

.ge-auth-alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}

.ge-auth-reset-back {
    background: none;
    border: none;
    color: #4f46e5;
    cursor: pointer;
    font-size: 0.8125rem;
    padding: 0;
    margin: 0 0 1.25rem;
    display: inline-flex;
    align-items: center;
    font-family: inherit;
    transition: color 0.15s ease-in-out;
}

.ge-auth-reset-back:hover {
    color: #6366f1;
    text-decoration: underline;
}

.ge-auth-step-text {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #4b5563;
    text-align: center;
}

.ge-auth-step-text strong {
    color: #111827;
}

.ge-auth-hint {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.375rem;
    padding: 0.625rem 0.875rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #92400e;
}

.ge-auth-timer {
    color: #6b7280;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.ge-codigo-boxes {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 0.5rem 0 0;
}

.ge-cod-box {
    width: 2.75rem;
    height: 3.25rem;
    text-align: center;
    font-size: 1.375rem;
    font-weight: 700;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #111827;
    outline: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    caret-color: transparent;
}

.ge-cod-box:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.45);
}

.ge-cod-box.filled {
    border-color: #a5b4fc;
    background: #eef2ff;
}

@media (max-width: 400px) {
    .ge-cod-box {
        width: 2.25rem;
        height: 2.75rem;
        font-size: 1.125rem;
    }

    .ge-codigo-boxes {
        gap: 0.375rem;
    }
}

.ge-senha-forca {
    margin: -0.75rem 0 0.5rem;
}

.ge-senha-forca-bar {
    height: 4px;
    border-radius: 4px;
    background: #e5e7eb;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.ge-senha-forca-bar span {
    display: block;
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 4px;
}

.ge-senha-forca > span {
    font-size: 0.6875rem;
    color: #6b7280;
}

.ge-auth-success {
    text-align: center;
}

.ge-auth-success-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 3.5rem;
}

.ge-auth-success-title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
}

/* —— APP para Membros — instalação PWA (estilo Ativve) —— */
.ge-app-install {
    margin: 1.75rem auto 0;
    width: 100%;
    max-width: 28rem;
    padding-top: 1.15rem;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}
.ge-app-install-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.65rem;
}
.ge-app-install-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.ge-app-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-family: inherit;
}
.ge-app-install-btn:hover,
.ge-app-install-btn:active {
    background: #eef2ff;
    border-color: rgba(79, 70, 229, 0.35);
    color: #4338ca;
}
.ge-app-install-ios-cta {
    display: none;
    flex-direction: column;
    gap: 0.65rem;
    align-items: stretch;
}
.ge-app-install-ios-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem;
}
.ge-app-install-ios-card img,
.ge-app-install-ios-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #4338ca;
}
.ge-app-install-ios-card strong {
    display: block;
    font-size: 0.82rem;
    color: #111827;
}
.ge-app-install-ios-card small {
    display: block;
    font-size: 0.72rem;
    color: #6b7280;
    margin-top: 0.1rem;
}
.ge-app-install-ios-open {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 10px;
    background: #4f46e5;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.ge-app-install-ios-open:active { background: #4338ca; }
body.ge-is-ios .ge-app-install-btns--desktop { display: none; }
body.ge-is-ios .ge-app-install-ios-cta { display: flex; }

.ge-app-ios-guide {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 5000;
    align-items: flex-end;
    justify-content: center;
}
.ge-app-ios-guide.show { display: flex; }
.ge-app-ios-guide-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}
.ge-app-ios-guide-sheet {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 94vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
}
.ge-app-ios-guide-head {
    padding: 1rem 1.15rem 0.85rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}
.ge-app-ios-guide-head h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.ge-app-ios-guide-head p { margin: 0; font-size: 0.78rem; color: #6b7280; }
.ge-app-ios-guide-close {
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #6b7280;
    cursor: pointer;
}
.ge-app-ios-guide-body { padding: 1rem 1.15rem 1.25rem; overflow-y: auto; flex: 1; }
.ge-app-ios-guide-steps { position: relative; min-height: 280px; }
.ge-app-ios-step { display: none; flex-direction: column; align-items: center; text-align: center; }
.ge-app-ios-step.active { display: flex; }
.ge-app-ios-step-num {
    width: 26px; height: 26px; border-radius: 50%;
    background: #4f46e5; color: #fff;
    font-size: 0.78rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 0.65rem;
}
.ge-app-ios-step-text { font-size: 0.88rem; line-height: 1.45; max-width: 300px; margin-bottom: 1rem; }
.ge-app-ios-phone {
    width: 100%; max-width: 280px;
    background: #1c1c1e; border-radius: 28px;
    padding: 10px 10px 0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    position: relative; overflow: hidden;
}
.ge-app-ios-notch {
    width: 90px; height: 22px; background: #1c1c1e;
    border-radius: 0 0 14px 14px; margin: 0 auto -11px; position: relative; z-index: 2;
}
.ge-app-ios-screen {
    background: #f9fafb; border-radius: 18px 18px 0 0;
    overflow: hidden; min-height: 220px; position: relative;
}
.ge-app-ios-screen-bar {
    height: 36px; background: #fff; border-bottom: 1px solid #e5e7eb;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 600; color: #6b7280;
}
.ge-app-ios-screen-content {
    padding: 0.85rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.ge-app-ios-screen-logo {
    width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #fff;
}
.ge-app-ios-screen-title { font-size: 0.72rem; font-weight: 700; }
.ge-app-ios-safari-bar { background: #f2f2f7; border-top: 1px solid #d1d1d6; padding: 0.45rem 0.55rem 0.55rem; }
.ge-app-ios-safari-url {
    background: #fff; border-radius: 8px; text-align: center;
    font-size: 0.62rem; color: #8e8e93; padding: 0.35rem 0.5rem; margin-bottom: 0.45rem;
}
.ge-app-ios-safari-tools {
    display: flex; align-items: center; justify-content: space-between;
    color: #007aff; font-size: 0.85rem;
}
.ge-app-ios-share-btn {
    width: 36px; height: 36px; border-radius: 8px; background: #fff;
    border: 2px solid #007aff; display: flex; align-items: center; justify-content: center; color: #007aff;
}
.ge-app-ios-arrow-hint { position: absolute; bottom: 88px; right: 38px; color: #007aff; }
.ge-app-ios-finger { position: absolute; bottom: 52px; right: 28px; font-size: 1.6rem; pointer-events: none; z-index: 5; }
.ge-app-ios-share-sheet {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: #f2f2f7; border-radius: 14px 14px 0 0; padding: 0.55rem 0.65rem 0.75rem; z-index: 3;
}
.ge-app-ios-sheet-handle {
    width: 36px; height: 4px; background: #c7c7cc; border-radius: 999px; margin: 0 auto 0.55rem;
}
.ge-app-ios-sheet-row {
    display: flex; align-items: center; gap: 0.65rem; background: #fff;
    border-radius: 10px; padding: 0.65rem 0.75rem; font-size: 0.72rem; font-weight: 600; text-align: left;
}
.ge-app-ios-sheet-row + .ge-app-ios-sheet-row { margin-top: 0.4rem; }
.ge-app-ios-sheet-row.dim { opacity: 0.45; font-weight: 500; }
.ge-app-ios-sheet-row.highlight { border: 2px solid #4f46e5; background: #eef2ff; }
.ge-app-ios-sheet-icon {
    width: 32px; height: 32px; border-radius: 7px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ge-app-ios-sheet-icon.gray { background: #e5e5ea; color: #8e8e93; }
.ge-app-ios-sheet-icon.purple { background: #4f46e5; color: #fff; }
.ge-app-ios-homescreen {
    background: linear-gradient(180deg, #5ac8fa 0%, #007aff 100%);
    min-height: 200px; padding: 1rem 0.75rem;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.65rem 0.5rem;
}
.ge-app-ios-app-icon { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.ge-app-ios-app-icon img,
.ge-app-ios-app-placeholder {
    width: 48px; height: 48px; border-radius: 11px; object-fit: cover; background: #fff;
}
.ge-app-ios-app-icon span {
    font-size: 0.55rem; color: #fff; max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ge-app-ios-app-placeholder { background: rgba(255, 255, 255, 0.25) !important; }
.ge-app-ios-success-badge {
    margin-top: 0.75rem; display: inline-flex; align-items: center; gap: 0.4rem;
    background: #eef2ff; color: #4338ca; font-size: 0.78rem; font-weight: 600;
    padding: 0.45rem 0.75rem; border-radius: 999px;
}
.ge-app-ios-guide-foot {
    padding: 0.85rem 1.15rem max(1rem, env(safe-area-inset-bottom));
    border-top: 1px solid #e5e7eb; background: #fafafa;
}
.ge-app-ios-guide-dots { display: flex; justify-content: center; gap: 0.4rem; margin-bottom: 0.55rem; }
.ge-app-ios-guide-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #d1d5db;
}
.ge-app-ios-guide-dot.active { background: #4f46e5; transform: scale(1.2); }
.ge-app-ios-guide-next {
    width: 100%; padding: 0.85rem; background: #4f46e5; color: #fff;
    border: none; border-radius: 10px; font-size: 0.92rem; font-weight: 700; cursor: pointer; font-family: inherit;
}
.ge-app-ios-safari-warn {
    margin: 0 1.15rem 1rem; padding: 0.65rem 0.85rem;
    background: #fff8e1; border: 1px solid rgba(249, 168, 37, 0.35);
    border-radius: 10px; font-size: 0.76rem; color: #e65100; line-height: 1.45; text-align: left;
}
