/* Crypto.com Style Authentication */
.crypto-auth-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #0c1426 0%, #1a2332 50%, #0f1419 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 60px;
    margin: 0;
}

.crypto-auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1400px;
    min-height: calc(100vh - 180px);
    margin: 0 auto;
}

/* Left Side - Form */
.crypto-auth-left {
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.crypto-auth-card {
    width: 100%;
    max-width: 400px;
    color: white;
}

.crypto-auth-header {
    margin-bottom: 32px;
}

.crypto-auth-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
    line-height: 1.2;
}

.crypto-auth-subtitle {
    color: #8892b0;
    font-size: 0.95rem;
    margin: 0;
}

.crypto-login-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.crypto-login-link:hover {
    text-decoration: underline;
}

/* Form Styles */
.crypto-auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.crypto-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.crypto-form-group label {
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
}

.crypto-form-group input {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 8px;
    padding: 14px 16px;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.crypto-form-group input::placeholder {
    color: #64748b;
}

.crypto-form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(30, 41, 59, 0.9);
}

.crypto-form-group input:hover {
    border-color: rgba(71, 85, 105, 0.8);
}

/* Phone Input Container */
.phone-input-container {
    display: flex;
    align-items: center;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.phone-input-container:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(30, 41, 59, 0.9);
}

.phone-input-container:hover {
    border-color: rgba(71, 85, 105, 0.8);
}

/* 默认桌面端样式 */
.country-code {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-right: 1px solid rgba(71, 85, 105, 0.5);
    background: rgba(20, 30, 45, 0.8);
    min-width: 90px;
}

.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 3px;
    object-fit: cover;
}

.country-code-text {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
    min-width: 35px;
}

.phone-input-container input {
    background: transparent;
    border: none;
    padding: 14px 16px;
    color: white;
    font-size: 0.95rem;
    flex: 1;
}

.phone-input-container input:focus {
    outline: none;
    box-shadow: none;
    background: transparent;
}

/* Password Input */
.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.password-toggle-icon {
    color: #64748b;
    transition: color 0.2s ease;
}

.password-toggle:hover .password-toggle-icon {
    color: #94a3b8;
}

/* 简单的复选框样式 */
.crypto-checkbox-group {
    margin: 8px 0;
}

.crypto-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.5;
    text-align: left;
}

/* 完全隐藏原生复选框 */
.crypto-checkbox-label input[type="checkbox"] {
    display: none;
}

/* 自定义复选框 - 使用flexbox居中 */
.crypto-checkmark {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    box-sizing: border-box;
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid rgba(71, 85, 105, 0.8);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 勾选状态 */
.crypto-checkbox-label input[type="checkbox"]:checked + .crypto-checkmark {
    background: #3b82f6;
    border-color: #3b82f6;
}

/* 勾选符号 - 使用文本符号确保兼容性 */
.crypto-checkmark::after {
    content: "";
    display: none;
}

.crypto-checkbox-label input[type="checkbox"]:checked + .crypto-checkmark::after {
    content: "✓" !important;
    display: block !important;
    color: white !important;
    font-size: 12px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    text-align: center !important;
}

/* 悬停效果 */
.crypto-checkbox-label:hover .crypto-checkmark {
    border-color: #3b82f6;
}

/* 文字样式 */
.crypto-checkbox-label span {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.crypto-checkbox-label a {
    color: #3b82f6;
    text-decoration: none;
}

.crypto-checkbox-label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.crypto-submit-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: 8px;
    padding: 16px 24px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.crypto-submit-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.crypto-submit-btn:active {
    transform: translateY(0);
}

.crypto-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Privacy Notice */
.crypto-privacy-notice {
    text-align: center;
    font-size: 0.8rem;
    color: #8892b0;
    margin-top: 16px;
}

.crypto-privacy-link {
    color: #3b82f6;
    text-decoration: none;
}

.crypto-privacy-link:hover {
    text-decoration: underline;
}

/* Right Side - Marketing Content */
.crypto-auth-right {
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.crypto-auth-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.crypto-marketing-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.crypto-marketing-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.crypto-marketing-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 40px;
}

.crypto-marketing-subtitle strong {
    color: #3b82f6;
    font-weight: 700;
}

.crypto-device-showcase {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.crypto-showcase-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.crypto-showcase-image:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg) scale(1.02);
}

/* Error Messages */
.error-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

/* Success Modal Styles */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-modal-overlay.show {
    opacity: 1;
}

.success-modal {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.success-modal-overlay.show .success-modal {
    transform: scale(1) translateY(0);
}

.success-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.success-icon {
    margin-bottom: 10px;
}

.success-modal h2 {
    color: #1f2937;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
}

.success-modal p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.success-modal-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.success-modal-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.success-modal-btn:active {
    transform: translateY(0);
}

/* Verification Modal Styles */
.verification-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.verification-modal-overlay.show {
    opacity: 1;
}

.verification-modal {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.verification-modal-overlay.show .verification-modal {
    transform: scale(1) translateY(0);
}

.verification-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.verification-icon {
    margin-bottom: 10px;
}

.verification-modal h2 {
    color: #1f2937;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
}

.verification-modal p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.verification-email {
    color: #3b82f6 !important;
    font-weight: 600;
    font-size: 1.1rem !important;
}

.verification-code-input {
    width: 100%;
    margin: 10px 0;
}

.verification-code-input input {
    width: 100%;
    padding: 16px;
    font-size: 1.5rem;
    text-align: center;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    letter-spacing: 0.5em;
    font-family: monospace;
    transition: border-color 0.3s ease;
}

.verification-code-input input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.verification-submit-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.verification-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.verification-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.resend-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.resend-text {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.resend-btn {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.resend-btn:hover:not(:disabled) {
    color: #2563eb;
    background: rgba(59, 130, 246, 0.1);
}

.resend-btn:disabled,
.resend-btn.disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

.resend-timer {
    color: #6b7280;
    font-weight: normal;
}

.verification-message {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.verification-message.success {
    background: #10b981;
    color: white;
}

.verification-message.error {
    background: #ef4444;
    color: white;
}

.verification-message.show {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .crypto-auth-section {
        padding: 100px 20px 60px;
    }

    .crypto-auth-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .crypto-auth-right {
        order: -1;
        padding: 40px 20px;
        min-height: 40vh;
    }

    .crypto-auth-left {
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 40px 20px;
    }

    .crypto-marketing-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .crypto-auth-section {
        padding: 80px 10px 40px !important;
        margin: 0 !important;
    }

    .crypto-auth-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .crypto-auth-left {
        padding: 20px 15px !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .crypto-auth-right {
        padding: 20px 15px !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .crypto-auth-card {
        max-width: none !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .crypto-auth-header h1 {
        font-size: 1.75rem;
    }

    .crypto-marketing-title {
        font-size: 1.75rem;
    }

    .crypto-marketing-subtitle {
        font-size: 1rem;
    }

    .crypto-checkbox-label {
        font-size: 0.85rem;
        gap: 10px;
    }

    /* 移动端复选框调整 */
    .crypto-checkmark {
        width: 16px;
        height: 16px;
        min-width: 16px;
        min-height: 16px;
        margin-top: 2px;
    }
    
    .crypto-checkbox-label input[type="checkbox"]:checked + .crypto-checkmark::after {
        font-size: 10px !important;
    }

    /* 移动端国旗框稍微大一点 */
    .country-code {
        padding: 18px 22px;
        gap: 12px;
        min-width: 100px;
    }
    
    .flag-icon {
        width: 22px;
        height: 16px;
    }
    
    .country-code-text {
        font-size: 0.98rem;
        min-width: 38px;
    }
}

@media (max-width: 480px) {
    .crypto-auth-section {
        padding: 70px 5px 30px !important;
        margin: 0 !important;
    }

    .crypto-auth-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .crypto-auth-left {
        padding: 15px 10px !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .crypto-auth-right {
        padding: 15px 10px !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .crypto-auth-card {
        max-width: none !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .crypto-form-group input {
        padding: 12px 14px;
    }

    .crypto-submit-btn {
        padding: 14px 20px;
    }

    .phone-input-container input {
        padding: 12px 14px;
    }

    .crypto-checkbox-label {
        gap: 8px;
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .crypto-checkbox-label span {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* 极小屏幕复选框调整 */
    .crypto-checkmark {
        width: 14px;
        height: 14px;
        min-width: 14px;
        min-height: 14px;
        margin-top: 3px;
    }
    
    .crypto-checkbox-label input[type="checkbox"]:checked + .crypto-checkmark::after {
        font-size: 8px !important;
    }

    /* 极小屏幕上的国旗框 */
    .country-code {
        padding: 16px 18px;
        gap: 10px;
        min-width: 85px;
    }
    
    .flag-icon {
        width: 20px;
        height: 15px;
    }
    
    .country-code-text {
        font-size: 0.9rem;
        min-width: 32px;
    }
}