.tgc-email-auth {
    max-width: 460px;
    margin: 0 auto;
    padding: 28px;
    border: 1px solid var(--tgc-border, #dbe2ea);
    border-radius: 14px;
    background: var(--tgc-surface, #fff);
    box-shadow: 0 14px 36px rgba(21, 34, 50, 0.08);
}

.tgc-email-auth__header {
    margin-bottom: 22px;
}

.tgc-email-auth__header h2 {
    margin: 6px 0 10px;
    font-size: 28px;
}

.tgc-email-auth__header p:last-child {
    margin: 0;
    color: var(--tgc-text-muted, #5d6670);
    line-height: 1.5;
}

.tgc-email-auth__form {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.tgc-email-auth__form label {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 700;
}

.tgc-email-auth__form input {
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid var(--tgc-border, #dbe2ea);
    border-radius: 8px;
    background: var(--tgc-surface-2, #f5f7fa);
    color: var(--tgc-text, #17212b);
    font: inherit;
    font-size: 16px;
}

.tgc-email-auth__form input:focus {
    border-color: var(--tgc-accent, #3390ec);
    outline: 2px solid rgba(51, 144, 236, 0.18);
}

.tgc-email-auth__form .usp-button {
    width: 100%;
    margin-top: 6px;
}

.tgc-email-auth__optional {
    color: var(--tgc-text-muted, #7a838c);
    font-size: 12px;
    font-weight: 400;
}

.tgc-email-auth__hint,
.tgc-email-auth__sent {
    margin: 0;
    color: var(--tgc-text-muted, #5d6670);
    font-size: 13px;
    line-height: 1.45;
}

.tgc-email-auth__actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

.tgc-email-auth__link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--tgc-accent, #3390ec);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.tgc-email-auth__link:disabled {
    color: var(--tgc-text-muted, #87909a);
    cursor: default;
}

.tgc-email-auth__notice {
    margin: 14px 0 0;
    padding: 10px 12px;
    border: 1px solid #efc4c4;
    border-radius: 8px;
    background: #fff4f4;
    color: #9f2f2f;
    font-size: 14px;
    line-height: 1.4;
}

.tgc-email-auth__notice.is-success {
    border-color: #b7dfc0;
    background: #f2fbf4;
    color: #206b32;
}

.tgc-email-auth__linked {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid #b7dfc0;
    border-radius: 8px;
    background: #f2fbf4;
    color: #206b32;
}

.tgc-email-auth__success {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #b7dfc0;
    border-radius: 8px;
    background: #f2fbf4;
    color: #206b32;
}

.tgc-email-auth__success p {
    margin: 5px 0 0;
    font-size: 14px;
}

@media (max-width: 560px) {
    .tgc-email-auth {
        padding: 22px 18px;
        border-radius: 12px;
    }

    .tgc-email-auth__header h2 {
        font-size: 24px;
    }
}

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