.auth-box.auth-box-google {
    max-width: 520px;
}

.auth-method-intro {
    margin: 22px 0 10px !important;
    color: #625b6d !important;
    font-size: 0.88rem;
    font-weight: 700;
}

.auth-method-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 24px;
    padding: 5px;
    background: #f3f1f6;
    border: 1px solid #e9e5ee;
    border-radius: 13px;
}

.auth-method-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 46px;
    padding: 9px 10px;
    color: #716979;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 750;
    line-height: 1.3;
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-method-tab:hover:not(:disabled) {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.65);
}

.auth-method-tab[aria-selected="true"] {
    color: #3f3748;
    background: #fff;
    box-shadow: 0 3px 12px rgba(50, 39, 60, 0.1);
}

.auth-method-tab:focus-visible {
    outline: 3px solid rgba(66, 133, 244, 0.28);
    outline-offset: 2px;
}

.auth-method-tab:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.auth-panel[hidden] {
    display: none !important;
}

.google-auth-card {
    padding: 26px 24px;
    text-align: center;
    background:
        radial-gradient(circle at 100% 0%, rgba(66, 133, 244, 0.09), transparent 38%),
        linear-gradient(145deg, #fff 0%, #faf9fc 100%);
    border: 1px solid #e9e5ee;
    border-radius: 15px;
}

.google-auth-card.is-disabled {
    pointer-events: none;
    opacity: 0.5;
}

.google-auth-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    color: #4285f4;
    font: 800 1.5rem/1 Arial, sans-serif;
    background: #fff;
    border: 1px solid #e2e5e9;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(60, 64, 67, 0.12);
}

.google-auth-card h2 {
    margin: 0 0 9px;
    color: #342d3d;
    font-size: 1.16rem;
    line-height: 1.4;
}

.google-auth-card > p {
    max-width: 400px;
    margin: 0 auto 20px !important;
    color: #716979 !important;
    font-size: 0.87rem;
    line-height: 1.7;
}

.google-profile-fields {
    margin: 0 0 18px;
    padding: 18px 18px 2px;
    text-align: left;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #ece8f0;
    border-radius: 12px;
}

.google-profile-fields .form-group {
    margin-bottom: 16px;
}

.google-profile-fields .form-help {
    line-height: 1.5;
}

.google-terms-box {
    margin: 0 0 18px;
    padding: 12px 14px;
    text-align: left;
    background: #fff;
    border: 1px solid #ece8f0;
    border-radius: 10px;
}

.google-terms-box .tos-label {
    margin: 0;
    font-size: 0.85rem;
}

.google-button-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    overflow: hidden;
    box-sizing: border-box;
}

.google-button-wrap > div {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden;
    box-sizing: border-box;
}

.google-button-wrap iframe {
    width: 100% !important;
    max-width: 100% !important;
}

.google-auth-status {
    display: none;
    margin-top: 14px;
    padding: 10px 12px;
    color: #4d4660;
    font-size: 0.84rem;
    line-height: 1.55;
    background: #f3f1fa;
    border-radius: 9px;
}

.google-auth-status.is-visible {
    display: block;
}

.google-auth-status.is-error {
    color: #9f2020;
    background: #fff0f0;
}

.google-auth-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 18px;
    color: #847c8b;
    font-size: 0.76rem;
    line-height: 1.55;
    text-align: left;
}

.google-auth-note span:first-child {
    flex: 0 0 auto;
}

@media (max-width: 520px) {
    .auth-box.auth-box-google {
        padding: 28px 20px;
    }

    .auth-method-tab {
        min-height: 44px;
        padding: 8px 5px;
        font-size: 0.78rem;
    }

    .google-auth-card {
        padding: 22px 16px;
    }

    .google-profile-fields {
        padding: 16px 14px 1px;
    }
}
