/* EC Registration Plugin Styles */

/* 重置和基础样式 */

.ec-registration-wrapper {
    width: 100%;
    max-width: 500px;
    position: relative;
    margin-left: auto;
    border-radius: 16px;
    padding: 66px 34px;
    background: linear-gradient(180deg, rgb(235 235 235 / 40%) 0%, rgb(204 216 225 / 66%) 100%);
    stroke-width: 1px;
    stroke: #E0E0E0;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    backdrop-filter: blur(5px);
}

/* 表单样式 */

.ec-form-group {
    margin-bottom: 15px;
}

.ec-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
    position: relative;
    font-family: 'Poppins', sans-serif;
    text-align: left;
}

.ec-form-input,
.ec-form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E2E8F3;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    outline: none;
}

.ec-form-input::placeholder {
    color: #9ca3af;
}

.ec-form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* 密码输入框样式 */
.ec-password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.ec-password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6b7280;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ec-password-toggle:hover {
    color: #374151;
}

.ec-eye-icon {
    width: 18px;
    height: 18px;
}

.ec-password-input .ec-form-input {
    padding-right: 40px;
}

/* 密码强度指示器 */
.ec-password-strength {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
}

.ec-password-strength.weak {
    color: #eb0b00;
}

.ec-password-strength.medium {
    color: #f39c12;
}

.ec-password-strength.strong {
    color: #27ae60;
}

/* 验证码组样式 */
.ec-verification-group {
    position: relative;
    display: flex;
    align-items: center;
}

.ec-verification-group .ec-form-input {
    width: 100%;
    padding-right: 160px; /* 为按钮留出空间 */
}

.ec-send-code-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #10b981;
    border: none;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    min-width: auto;
    height: auto;
    line-height: 1.4;
    z-index: 2;
}

.ec-send-code-btn:hover {
    color: #059669;
    text-decoration: underline;
}

.ec-send-code-btn:disabled {
    color: #9ca3af;
    cursor: not-allowed;
    text-decoration: none;
}

/* 复选框样式 */
.ec-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.ec-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.ec-checkbox-custom {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #FFF;
    background: transparent;
    border-radius: 3px;
    margin-right: 10px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.ec-checkbox:checked + .ec-checkbox-custom {
    background: #ef4444;
    border-color: #ef4444;
}

.ec-checkbox:checked + .ec-checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ec-checkbox-text {
    color: #fff;
    font-weight: 400;
    font-size: 12px;
    text-align: left;
}

.ec-checkbox-text a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    text-decoration: underline;
}


/* 提交按钮样式 */
.ec-submit-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;
}

.ec-submit-btn:hover {
    background: #dc2626;
}

.ec-submit-btn:active {
    background: #b91c1c;
}

.ec-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.ec-spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误信息样式 */
.ec-form-error {
    color: #eb0b00;
    font-size: 14px;
    font-weight: 500;
    margin-top: 5px;
    display: flex;
    align-items: center;
    text-align: left;
}

.ec-form-error:not(:empty)::before {
    content: '⚠ ';
    margin-right: 4px;
}

/* 底部样式 */
.ec-registration-footer {
    text-align: center;
    margin-bottom: 15px;
}

.ec-login-link {
    font-size: 14px;
    color: #fff;
    margin: 0;
    margin-top: 12px;
}

.ec-login-link a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}


/* 协议部分样式 */
.ec-agreement-section {
    text-align: center;
    padding-top: 15px;
}

/* 成功消息样式 */
.ec-success-message {
    background: #d4edda;
    color: #333333;
    padding: 16px 20px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid #28a745;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ec-success-message::before {
    content: '✓';
    font-weight: bold;
    font-size: 16px;
    color: #ffffff;
    background: #28a745;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 错误提示弹窗样式 */
.ec-error-popup {
    position: absolute;
    top: 0;
    right: 0;
    background: #ffffff;
    border-left: 4px solid #eb0b00;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    text-align: left;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
    width: 100%;
}

.ec-error-popup-icon {
    width: 20px;
    height: 20px;
    background: #eb0b00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.ec-error-popup-icon::before {
    content: '×';
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.ec-error-popup-content {
    flex: 1;
}

.ec-error-popup-title {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.ec-error-popup-message {
    font-size: 14px;
    color: #666666;
    margin: 0;
    line-height: 1.4;
}

/* 弹窗动画 */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.ec-error-popup.closing {
    animation: slideOutRight 0.3s ease-in forwards;
}
.ec-registration-container{
    position: relative;
}
/* 成功提示弹窗样式 */
.ec-success-popup {
    position: absolute;
    top: 0;
    background: #d4edda;
    border-left: 4px solid #28a745;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    width: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
}

.ec-success-popup-icon {
    width: 20px;
    height: 20px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ec-success-popup-icon::before {
    content: '✓';
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.ec-success-popup-message {
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.ec-success-popup.closing {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* 响应式设计 */
@media (max-width: 768px) {
   
    
    .ec-registration-wrapper {
        max-width: 100%;
    }
    
    .ec-verification-group .ec-form-input {
        padding-right: 140px; /* 移动端减少按钮空间 */
    }
    
    .ec-send-code-btn {
        font-size: 11px;
        padding: 4px 6px;
    }
    
    /* 移动端提示框样式 */
    .ec-password-tooltip {
        position: fixed;
        top: 110px !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: calc(100vw - 40px);
        max-width: 320px;
        z-index: 10000;
    }
    
    .ec-tooltip-arrow {
        display: none;
    }
    
    /* 移动端错误提示弹窗样式 */
    .ec-error-popup {
        top: 0;
        right:0;
        left: 0;
        max-width: none;
        padding: 12px 16px;
    }
    
    .ec-error-popup-title {
        font-size: 15px;
    }
    
    .ec-error-popup-message {
        font-size: 13px;
    }
    
    /* 移动端成功提示弹窗样式 */
    .ec-success-popup {
        padding: 12px 16px;
    }
    
    .ec-success-popup-message {
        font-size: 13px;
    }
}

@media (max-width: 480px) {

    
    .ec-form-input,
    .ec-form-select {
        padding: 12px 15px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .ec-submit-btn {
        padding: 14px 20px;
        font-size: 16px;
    }
}

/* 加载状态 */
.ec-loading {
    pointer-events: none;
    opacity: 0.7;
}

.ec-loading .ec-btn-text {
    display: none;
}

.ec-loading .ec-btn-loading {
    display: inline-flex !important;
}

/* 错误状态样式 */
.ec-form-input.error,
.ec-form-select.error {
    border-color: #eb0b00;
}

/* 成功状态样式 */
.ec-form-input.success,
.ec-form-select.success {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* 禁用状态 */
.ec-form-input:disabled,
.ec-form-select:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* 占位符样式 */
.ec-form-input::placeholder {
    color: #adb5bd;
    opacity: 1;
}

/* 选择框选项样式 */
.ec-form-select option {
    padding: 10px;
    background: #ffffff;
    color: #2c3e50;
}

/* 工具提示样式 */
.ec-tooltip {
    position: relative;
    display: inline-block;
}

.ec-tooltip .ec-tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #2c3e50;
    color: #ffffff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    font-weight: 400;
}

.ec-tooltip:hover .ec-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 进度条样式 */
.ec-progress-bar {
    width: 100%;
    height: 4px;
    background-color: #e1e8ed;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 10px;
}

.ec-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e33935, #ff6b6b);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* 密码提示框样式 */
.ec-password-tooltip {
    position: absolute;
    top: 0;
    right: calc(100% + 15px);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    min-width: 280px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.ec-password-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.ec-tooltip-arrow {
    position: absolute;
    right: -6px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #ffffff;
}
/* 
.ec-tooltip-arrow::before {
    content: '';
    position: absolute;
    left: 1px;
    top: -6px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #e5e7eb;
} */

.ec-tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ec-tooltip-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ec-tooltip-icon {
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 1px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.ec-tooltip-text {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 400;
    transition: color 0.2s ease;
}

/* 满足条件时的样式 */
.ec-tooltip-item.satisfied .ec-tooltip-icon {
    color: #10b981;
    background-color: #10b981;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ec-tooltip-item.satisfied .ec-tooltip-text {
    color: #10b981;
}

/* 密码输入框容器相对定位 */
.ec-form-group {
    position: relative;
}

/* 验证码输入框特殊样式 */
#verification_code {
    text-align: left;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: normal;
    font-family: inherit;
}

/* 邀请码容器样式 */
.ec-referral-code-container {
    margin-top: 8px;
    padding-top: 8px;
}

/* 国家选择框样式 */
.ec-country-select-container {
    position: relative;
}

.ec-country-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ec-country-search-icon svg {
    width: 16px;
    height: 16px;
    margin-top: -1px;
}

.ec-country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    scroll-behavior: auto;
}

.ec-country-dropdown.show {
    display: block;
}

.ec-country-list {
    padding: 0;
    margin: 0;
}

.ec-country-item {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
    font-size: 14px;
    color: #000000;
}

.ec-country-item:hover,
.ec-country-item.selected {
    background-color: #fef2f2;
    color: #dc2626;
    font-weight: 600;
}

.ec-country-item:last-child {
    border-bottom: none;
}

.ec-country-loading {
    padding: 16px;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

.ec-country-no-results {
    padding: 16px;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

/* 滚动条样式 */
.ec-country-dropdown::-webkit-scrollbar {
    width: 6px;
}

.ec-country-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.ec-country-dropdown::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 3px;
}

.ec-country-dropdown::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* 国家选择框优化 */
.ec-form-select option[value=""] {
    color: #adb5bd;
    font-style: italic;
} 

/* 注册成功页面样式 */
.ec-success-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 0;
}
.ec-success-icon {
  width: 80px;
  height: 80px;
  background: #34a853;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}
.ec-success-icon span {
  color: #fff;
  font-size: 48px;
  font-weight: bold;
  line-height: 1;
}
.ec-success-title {
  font-size: 22px;
  font-weight: 600;
  color: #222;
  margin-bottom: 40px;
  text-align: center;
}
.ec-success-btn {
  width: 100%;
  max-width: 340px;
  background: #d64541;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  padding: 16px 0;
  margin-bottom: 24px;
  cursor: pointer;
  transition: background 0.2s;
}
.ec-success-btn:hover {
  background: #b8322f;
}
.ec-success-skip {
  color: #d64541;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
} 

/* 登录页面样式 */
.ec-login-wrapper {
  position: relative;
  max-width: 420px;
  margin: 40px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 36px 32px 32px 32px;
  position: relative;
  font-family: inherit;
}
.ec-login-header {
  position: relative;
  margin-bottom: 24px;
}
.ec-login-title {
  font-size: 26px;
  font-weight: 700;
  color: #111;
}
.ec-login-qr {
  position: absolute;
  top: -52px;
  right: 0;
  width: 74px;
  height: 74px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.ec-login-qr-icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 74px;
  height: 74px;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  overflow: hidden;
  z-index: 2;
  background: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}
.ec-login-qr-tip {
  position: absolute;
  top: 8px;
  right: 0;
  z-index: 3;
  background: #222;
  color: #fff;
  font-size: 13px;
  border-radius: 6px 6px 0 0;
  padding: 4px 12px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.ec-form-group {
  margin-bottom: 18px;
}
.ec-form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  color: #222;
  background: #fff;
  transition: border 0.2s;
}
.ec-form-input:focus {
  border-color: #d64541;
}
.ec-password-input {
  position: relative;
  display: flex;
  align-items: center;
}
.ec-password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  font-size: 18px;
  padding: 0;
}
.ec-eye-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}
.ec-login-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 15px;
}
.ec-login-register {
  color: #222;
}
.ec-login-register a {
  color: #34a853;
  font-weight: 600;
  text-decoration: none;
}
.ec-login-otp {
  color: #34a853;
  font-weight: 600;
  text-decoration: none;
}
.ec-login-btn {
  width: 100%;
  background: #d64541;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  padding: 16px 0;
  margin-bottom: 18px;
  cursor: pointer;
  transition: background 0.2s;
}
.ec-login-btn:hover {
  background: #b8322f;
}
.ec-login-forgot {
  color: #34a853;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: block;
  margin-bottom: 18px;
}
.ec-login-policy {
  font-size: 13px;
  color: #222;
  text-align: center;
}
.ec-login-policy-link {
  color: #34a853;
  text-decoration: none;
  font-weight: 600;
} 