/* Social login — shared by login & registration pages */
.ec-social-login-section {
    margin: 20px 0 16px;
    display: none;
}

.ec-social-login-section.ec-social-ready {
    display: block;
}

.ec-social-login-section.ec-social-suppressed {
    display: none !important;
}

.ec-social-login-section .ec-social-icon-btn {
    display: none;
}

.ec-social-login-section .ec-social-icon-btn.ec-social-visible {
    display: flex;
}

.ec-social-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #6b7280;
    font-size: 13px;
}

.ec-social-login-divider::before,
.ec-social-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.ec-social-login-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.ec-social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
}

.ec-social-icon-btn:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ec-social-icon-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.ec-google-bind-title,
.ec-telegram-bind-title,
.ec-apple-bind-title {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin: 0 0 20px;
    color: #111;
}

.ec-google-bind-back,
.ec-telegram-bind-back,
.ec-apple-bind-back {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    color: #003AF5;
    font-size: 14px;
    cursor: pointer;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Bind 面板主按钮：直接复用登录页 .ec-login-btn 规则，不要另写一套 */
.ec-login-mode .ec-login-btn {
    width: 100%;
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.ec-login-mode .ec-login-btn:hover {
    background: #b8322f;
}

@media screen and (min-width: 800px) {
    .ec-login-mode .ec-login-btn {
        max-width: 240px;
        padding: 20px 24px;
        margin-left: auto;
        margin-right: auto;
    }
}

/*
 * Bind 面板的验证码区必须与登录页 OTP 一致：
 * 按钮绝对定位在输入框内左侧；不要用 flex 并排，否则会和 label 叠字。
 */
.ec-login-mode .ec-form-group {
    position: relative;
}

.ec-login-mode .ec-form-label {
    display: block;
    margin-bottom: 6px;
}

.ec-login-mode .ec-verification-input {
    position: relative;
    display: block;
}

.ec-login-mode .ec-verification-input .ec-form-input {
    width: 100%;
    padding-left: 210px;
    box-sizing: border-box;
}

.ec-login-mode .ec-verification-input .ec-send-code-btn {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

@media screen and (min-width: 800px) {
    #ec-registration-form > .ec-social-login-section {
        grid-column: 1 / 3;
    }
}
