/* Modal de login/cadastro — tema claro (harmoniza com o botão oficial do Google) */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    overflow-x: hidden;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.auth-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.auth-modal-panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 40px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18), 0 0 1px rgba(0, 0, 0, 0.08);
    padding: 28px 26px 26px;
    color: #202124;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.22s ease;
}
.auth-modal-overlay.is-open .auth-modal-panel {
    transform: translateY(0) scale(1);
}
.auth-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f3f4;
    color: #5f6368;
    border-radius: 10px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}
.auth-modal-close:hover {
    background: #e8eaed;
    color: #202124;
}
.auth-modal-title {
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    margin: 0 0 10px;
    padding: 0 28px;
    letter-spacing: -0.02em;
    color: #202124;
}
.auth-modal-lead {
    font-size: 14px;
    line-height: 1.45;
    color: #5f6368;
    text-align: center;
    margin: 0 0 22px;
}
.auth-modal-pill-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 10px 18px;
    margin-bottom: 10px;
    border-radius: 999px;
    border: 1px solid #dadce0;
    background: #ffffff;
    color: #3c4043;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.auth-modal-pill-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #bdc1c6;
}
.auth-modal-pill-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.auth-modal-pill-btn .auth-modal-pill-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-modal-google-host {
    width: 100%;
    min-height: 48px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.auth-modal-google-host > div {
    flex: 0 0 auto;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0;
}
.auth-modal-google-host iframe {
    display: block;
    width: auto;
    height: auto;
}
.auth-modal-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #80868b;
    font-size: 12px;
    font-weight: 600;
}
.auth-modal-divider::before,
.auth-modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dadce0;
}
.auth-modal-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid #dadce0;
    background: #ffffff;
    color: #202124;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-modal-input::placeholder {
    color: #80868b;
}
.auth-modal-input:focus {
    border-color: rgba(229, 9, 20, 0.55);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.12);
}
.auth-modal-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    padding: 12px 20px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.98) 0%, rgba(229, 9, 20, 0.88) 46%, rgba(255, 122, 24, 0.98) 100%);
    transition: filter 0.15s ease, transform 0.1s ease;
}
.auth-modal-btn-primary:hover {
    filter: brightness(1.06);
}
.auth-modal-btn-primary:active {
    transform: translateY(1px);
}
.auth-modal-error {
    display: none;
    font-size: 13px;
    color: #c5221f;
    margin-top: 10px;
    text-align: center;
}
.auth-modal-error.is-visible {
    display: block;
}
.auth-modal-step2 {
    display: none;
}
.auth-modal-step2.is-visible {
    display: block;
}
.auth-modal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    padding: 0;
    border: none;
    background: none;
    color: #5f6368;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.auth-modal-back:hover {
    color: #202124;
}
.auth-modal-form-block {
    margin-bottom: 14px;
}
.auth-modal-form-block label {
    display: block;
    font-size: 12px;
    color: #5f6368;
    margin-bottom: 6px;
    padding-left: 4px;
}
.auth-modal-switch {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #5f6368;
}
.auth-modal-switch button {
    background: none;
    border: none;
    color: #e50914;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.auth-modal-switch button:hover {
    color: #b8070f;
}
.auth-modal-hidden {
    display: none !important;
}
