/* Components CSS - Bitget Clone */

/* Button Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
}

.btn-primary:hover {
    background: #f0f0f0;
    color: #000000;
    transform: translateY(-2px);
}

.btn-outline {
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
}

.btn-outline:hover {
    background: #333333;
    color: #ffffff;
    border: 1px solid #333333;
}

.btn-secondary {
    background: #1C1C1C;
    color: #E0E0E0;
    border: 1px solid #2E2E2E;
}

.btn-secondary:hover {
    background: #2E2E2E;
    border-color: #00E0FF;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-small,
.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-success {
    background: transparent;
    color: #ffffff;
}

.btn-success:hover {
    color: #00E0FF !important;
    background: transparent;
}

.btn-danger {
    background: transparent;
    color: #ffffff;
}

.btn-danger:hover {
    color: #00E0FF !important;
    background: transparent;
}

/* Card Components */
.card {
    background: #1C1C1C;
    border: 1px solid #2E2E2E;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: #00E0FF;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 224, 255, 0.1);
}

.card-header {
    margin-bottom: 20px;
}

.card-title {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-subtitle {
    color: #999999;
    font-size: 14px;
}

.card-body {
    margin-bottom: 20px;
}

.card-footer {
    border-top: 1px solid #2E2E2E;
    padding-top: 20px;
}

/* Modal Components */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(21, 21, 23, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #1C1C1C;
    border: 1px solid #2E2E2E;
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal-title {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: #999999;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #2E2E2E;
    color: #FFFFFF;
}

/* Form Components */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: #E0E0E0;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: #151517;
    border: 1px solid #2E2E2E;
    border-radius: 8px;
    color: #E0E0E0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #00E0FF;
    box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.1);
}

.form-input.error {
    border-color: #FF4D4D;
}

.form-error {
    color: #FF4D4D;
    font-size: 12px;
    margin-top: 4px;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    background: #151517;
    border: 1px solid #2E2E2E;
    border-radius: 8px;
    color: #E0E0E0;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #00E0FF;
    box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.1);
}

/* Loading Components */
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #2E2E2E;
    border-top: 3px solid #00E0FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.skeleton {
    background: linear-gradient(90deg, #1C1C1C 25%, #2E2E2E 50%, #1C1C1C 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Alert Components */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    color: #FFFFFF;
    font-weight: 500;
    z-index: 1001;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 400px;
}

.alert.show {
    transform: translateX(0);
}

.alert-success {
    background: #00C076;
    border: 1px solid #00A862;
}

.alert-error {
    background: #FF4D4D;
    border: 1px solid #E63946;
}

.alert-warning {
    background: #FFA500;
    border: 1px solid #FF8C00;
}

.alert-info {
    background: #00E0FF;
    color: #151517;
    border: 1px solid #00B2CC;
}

/* Tab Components */
.tabs {
    border-bottom: 1px solid #2E2E2E;
    margin-bottom: 24px;
}

.tab-list {
    display: flex;
    gap: 0;
}

.tab-button {
    background: none;
    border: none;
    padding: 16px 24px;
    color: #999999;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #E0E0E0;
}

.tab-button.active {
    color: #00E0FF;
    border-bottom-color: #00E0FF;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Table Components */
.table {
    width: 100%;
    border-collapse: collapse;
    background: #1C1C1C;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2E2E2E;
}

.table th {
    background: #151517;
    color: #999999;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #2E2E2E;
}

.table td {
    padding: 16px;
    color: #E0E0E0;
    border-bottom: 1px solid #2E2E2E;
    font-size: 14px;
}

.table tr:hover {
    background: rgba(0, 224, 255, 0.05);
}

.table tr:last-child td {
    border-bottom: none;
}

/* Badge Components */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(0, 192, 118, 0.2);
    color: #00C076;
}

.badge-error {
    background: rgba(255, 77, 77, 0.2);
    color: #FF4D4D;
}

.badge-warning {
    background: rgba(255, 165, 0, 0.2);
    color: #FFA500;
}

.badge-info {
    background: rgba(0, 224, 255, 0.2);
    color: #00E0FF;
}

/* KYC Verification Styles */
.kyc-main {
    min-height: 100vh;
    background: #151517;
    padding: 120px 0 60px;
}

.kyc-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.kyc-progress {
    margin-bottom: 40px;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active,
.step.completed {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2E2E2E;
    color: #999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #00E0FF;
    color: #151517;
}

.step.completed .step-number {
    background: #00C076;
    color: #FFFFFF;
}

.step-label {
    font-size: 12px;
    color: #999999;
    text-align: center;
    max-width: 100px;
}

.step.active .step-label,
.step.completed .step-label {
    color: #E0E0E0;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: #2E2E2E;
    margin: 0 20px;
    margin-bottom: 32px;
}

.step.completed + .step-connector {
    background: #00C076;
}

.kyc-content {
    background: #1C1C1C;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid #2E2E2E;
}

.kyc-step {
    display: none;
}

.kyc-step.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-header h2 {
    color: #FFFFFF;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-header p {
    color: #999999;
    font-size: 16px;
}

.kyc-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #E0E0E0;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: #151517;
    border: 1px solid #2E2E2E;
    border-radius: 8px;
    color: #E0E0E0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00E0FF;
    box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #FF4D4D;
}

.field-error {
    color: #FF4D4D;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.document-selection {
    margin-bottom: 40px;
}

.document-selection h3 {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.document-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.document-type {
    background: #151517;
    border: 2px solid #2E2E2E;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.document-type:hover {
    border-color: #00E0FF;
    background: rgba(0, 224, 255, 0.05);
}

.document-type.selected {
    border-color: #00E0FF;
    background: rgba(0, 224, 255, 0.1);
}

.document-type i {
    font-size: 32px;
    color: #00E0FF;
    margin-bottom: 12px;
    display: block;
}

.document-type span {
    color: #E0E0E0;
    font-weight: 500;
}

.document-upload {
    margin-bottom: 40px;
}

.upload-instructions {
    margin-bottom: 30px;
}

.upload-instructions h4 {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.upload-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.tip {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999999;
    font-size: 14px;
}

.tip i {
    color: #00C076;
    font-size: 12px;
}

.upload-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.upload-area {
    border: 2px dashed #2E2E2E;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: #00E0FF;
    background: rgba(0, 224, 255, 0.05);
}

.upload-area.drag-over {
    border-color: #00E0FF;
    background: rgba(0, 224, 255, 0.1);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-content i {
    font-size: 48px;
    color: #00E0FF;
}

.upload-content h4 {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
}

.upload-content p {
    color: #999999;
    font-size: 14px;
}

.upload-preview {
    position: relative;
    width: 100%;
    height: 100%;
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.remove-file {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(255, 77, 77, 0.9);
    border: none;
    border-radius: 50%;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-file:hover {
    background: #FF4D4D;
}

.facial-verification {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.camera-container {
    text-align: center;
}

.camera-frame {
    position: relative;
    width: 400px;
    height: 300px;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #151517;
    border: 2px solid #2E2E2E;
}

.camera-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 16px;
}

.camera-placeholder i {
    font-size: 48px;
    color: #00E0FF;
}

.camera-placeholder h3 {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
}

.camera-placeholder p {
    color: #999999;
    font-size: 14px;
}

#cameraVideo,
#cameraCanvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.face-outline {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 250px;
    border: 3px solid #00E0FF;
    border-radius: 50%;
    opacity: 0.7;
}

.camera-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.facial-tips h4 {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.tips-grid {
    display: grid;
    gap: 12px;
}

.verification-status {
    text-align: center;
}

.status-animation {
    margin-bottom: 40px;
}

.loading-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #1C1C1C;
    border: 4px solid #2E2E2E;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
}

.loading-circle::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #00E0FF, #00E0FF, transparent);
    animation: rotate 2s linear infinite;
}

.loading-circle.success {
    border-color: #00C076;
}

.loading-circle.success::before {
    background: #00C076;
    animation: none;
}

.loading-circle i {
    font-size: 48px;
    color: #00E0FF;
    z-index: 1;
}

.loading-circle.success i {
    color: #00C076;
}

.circle-progress {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border-radius: 50%;
    background: #1C1C1C;
    z-index: 1;
}

.status-steps {
    max-width: 400px;
    margin: 0 auto 40px;
}

.status-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #2E2E2E;
}

.status-step:last-child {
    border-bottom: none;
}

.status-step i {
    width: 20px;
    text-align: center;
}

.status-step.completed i {
    color: #00C076;
}

.status-step.processing .loading-spinner {
    width: 16px;
    height: 16px;
}

.status-step.pending i {
    color: #999999;
}

.status-step span {
    color: #E0E0E0;
    font-size: 14px;
}

.verification-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    background: #151517;
    border: 1px solid #2E2E2E;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.info-card h4 {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.info-card p {
    color: #999999;
    font-size: 12px;
}

.step-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

.loading-spinner.small {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Copy Trading Styles */
.copy-trading-hero {
    background: linear-gradient(135deg, #1C1C1C 0%, #151517 100%);
    padding: 80px 0;
    text-align: center;
}

.copy-trading-hero h1 {
    color: #FFFFFF;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.copy-trading-hero p {
    color: #999999;
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero stats styles moved to main.css to avoid conflicts */

/* Responsive */
@media (max-width: 768px) {
    .kyc-container {
        padding: 0 16px;
    }
    
    .kyc-content {
        padding: 24px 20px;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .step-connector {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .document-types {
        grid-template-columns: 1fr;
    }
    
    .upload-areas {
        grid-template-columns: 1fr;
    }
    
    .facial-verification {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .camera-frame {
        width: 100%;
        max-width: 350px;
    }
    
    .step-actions {
        flex-direction: column;
    }
    
    .verification-info {
        grid-template-columns: 1fr;
    }
    
    /* Hero stats responsive styles handled in responsive.css */
    
    .copy-trading-hero h1 {
        font-size: 32px;
    }
    
    .modal-content {
        padding: 24px;
        margin: 20px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .tab-list {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1;
        min-width: 120px;
    }
}

/* Authentication Pages Styles */
.auth-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1rem 2rem 1rem;
    background: linear-gradient(135deg, #151517 0%, #1C1C1C 100%);
    position: relative;
}

.auth-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 224, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: rgba(28, 28, 28, 0.95);
    border: 1px solid #2E2E2E;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px rgba(21, 21, 23, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.auth-card:hover {
    border-color: rgba(0, 224, 255, 0.3);
    box-shadow: 0 25px 50px rgba(21, 21, 23, 0.4), 0 0 30px rgba(0, 224, 255, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    color: #FFFFFF;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.auth-header p {
    color: #999999;
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* Login Tabs */
.login-tabs {
    display: flex;
    background: #151517;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 2rem;
    border: 1px solid #2E2E2E;
}

.login-tabs .tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #999999;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.login-tabs .tab-btn:hover {
    color: #E0E0E0;
    background: rgba(255, 255, 255, 0.05);
}

.login-tabs .tab-btn.active {
    background: #00E0FF;
    color: #151517;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 224, 255, 0.3);
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #E0E0E0;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: #666666;
    font-size: 0.875rem;
    z-index: 2;
    transition: color 0.3s ease;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 48px 16px 48px;
    background: #151517;
    border: 2px solid #2E2E2E;
    border-radius: 12px;
    color: #E0E0E0;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input[type="password"] {
    padding-right: 48px;
}

.input-wrapper input:not([type="password"]) {
    padding-right: 16px;
}

.input-wrapper input:focus {
    border-color: #00E0FF;
    box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.1);
    background: rgba(0, 224, 255, 0.02);
}

.input-wrapper input:focus + i,
.input-wrapper:focus-within i {
    color: #00E0FF;
}

.input-wrapper input::placeholder {
    color: #666666;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    z-index: 10;
}

.password-toggle:hover {
    color: #00E0FF;
    background: rgba(0, 224, 255, 0.1);
}

/* Field Error */
.field-error {
    color: #FF4D4D;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
    min-height: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.field-error:before {
    content: '▲';
    color: #FF4D4D;
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #E0E0E0;
    font-size: 0.875rem;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #00E0FF;
}

.forgot-link {
    color: #00E0FF;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #00B2CC;
    text-decoration: underline;
}

/* Button Styles */
.btn-full {
    width: 100%;
}

.btn-large {
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #ffffff;
    border: 1px solid #ffffff;
    color: #000000;
    box-shadow: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #f0f0f0;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: none;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Social Login */
.social-login {
    margin: 2rem 0;
}

.social-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #666666;
    font-size: 0.875rem;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #2E2E2E;
}

.social-divider span {
    padding: 0 1rem;
}

.social-buttons {
    display: flex;
    gap: 1rem;
}

.social-btn {
    flex: 1;
    padding: 12px;
    background: #151517;
    border: 2px solid #2E2E2E;
    border-radius: 12px;
    color: #E0E0E0;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-btn:hover {
    border-color: #00E0FF;
    background: rgba(0, 224, 255, 0.05);
    color: #00E0FF;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #2E2E2E;
}

.auth-footer p {
    color: #999999;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.auth-footer a {
    color: #00E0FF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #00B2CC;
    text-decoration: underline;
}

/* Phone Input Wrapper */
.phone-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.country-select {
    min-width: 120px;
    padding: 16px 12px;
    background: #151517;
    border: 2px solid #2E2E2E;
    border-radius: 12px;
    color: #E0E0E0;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.country-select:focus {
    border-color: #00E0FF;
    box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.1);
}

.phone-input {
    flex: 1;
    padding: 16px;
    background: #151517;
    border: 2px solid #2E2E2E;
    border-radius: 12px;
    color: #E0E0E0;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    outline: none;
}

.phone-input:focus {
    border-color: #00E0FF;
    box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.1);
    background: rgba(0, 224, 255, 0.02);
}

.phone-input::placeholder {
    color: #666666;
}

/* Verification Wrapper */
.verification-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.verification-wrapper .input-wrapper {
    flex: 1;
}

.send-code-btn {
    padding: 16px 20px;
    background: #151517;
    border: 2px solid #2E2E2E;
    border-radius: 12px;
    color: #00E0FF;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
}

.send-code-btn:hover {
    border-color: #00E0FF;
    background: rgba(0, 224, 255, 0.1);
}

.send-code-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #666666;
}

/* Button Loading State */
.btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.btn.loading .btn-loading {
    display: flex;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: #2E2E2E;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: #FF4D4D;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    width: 25%;
    background: #FF4D4D;
}

.strength-fill.fair {
    width: 50%;
    background: #FFA500;
}

.strength-fill.good {
    width: 75%;
    background: #FFD700;
}

.strength-fill.strong {
    width: 100%;
    background: #00C076;
}

.strength-text {
    font-size: 0.8125rem;
    color: #999999;
    font-weight: 500;
    min-width: 60px;
}

/* Tab Content Animation */
.tab-content {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Terms and Conditions */
.terms-wrapper {
    margin: 1.5rem 0;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(0, 224, 255, 0.02);
    border: 1px solid rgba(0, 224, 255, 0.1);
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 0.125rem;
    width: 18px;
    height: 18px;
    accent-color: #00E0FF;
    flex-shrink: 0;
}

.terms-checkbox label {
    color: #E0E0E0;
    cursor: pointer;
    margin: 0;
}

.terms-checkbox a {
    color: #00E0FF;
    text-decoration: none;
    font-weight: 500;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* Security Notice */
.security-notice {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 224, 255, 0.05);
    border: 1px solid rgba(0, 224, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.notice-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.notice-content i {
    color: #00E0FF;
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.notice-content h3 {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.notice-content p {
    color: #B0B0B0;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Registration Benefits */
.registration-benefits {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 224, 255, 0.03);
    border: 1px solid rgba(0, 224, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.registration-benefits h3 {
    color: #FFFFFF;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
}

.benefit-item i {
    color: #00E0FF;
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.benefit-item h4 {
    color: #FFFFFF;
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.benefit-item p {
    color: #B0B0B0;
    font-size: 0.8125rem;
    line-height: 1.4;
    margin: 0;
}

/* Responsive Design for Auth Pages */
@media (max-width: 768px) {
    .auth-main {
        padding: 4rem 1rem 2rem 1rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .phone-input-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .country-select {
        min-width: 100%;
    }
    
    .verification-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .send-code-btn {
        width: 100%;
        min-width: auto;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .security-notice {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    .notice-content {
        gap: 0.75rem;
    }
    
    .notice-content i {
        font-size: 1.125rem;
    }
    
    .registration-benefits {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .benefit-item {
        gap: 0.75rem;
    }
    
    .benefit-item i {
        font-size: 1.125rem;
    }
}

/* Mobile styles for homepage market table "Trader" buttons */
@media (max-width: 767px) {
    .market-table .btn-primary.btn-sm {
        width: 32px !important;
        height: 32px !important;
        border-radius: 6px !important;
        background-color: #00E0FF !important;
        border: 1px solid #00E0FF !important;
        color: transparent !important;
        font-size: 0 !important;
        text-indent: -9999px !important;
        overflow: hidden !important;
        line-height: 0 !important;
        white-space: nowrap !important;
        position: relative !important;
        padding: 0 !important;
    }
    
    /* Force hide all text in the button */
    .market-table .btn-primary.btn-sm * {
        color: transparent !important;
        font-size: 0 !important;
        text-indent: -9999px !important;
        visibility: hidden !important;
    }
    
    .market-table .btn-primary.btn-sm:hover {
        background-color: #00C4E0 !important;
        border-color: #00C4E0 !important;
        color: white !important;
    }
    
    /* Add SVG logo */
    .market-table .btn-primary.btn-sm::before {
        content: '';
        display: block !important;
        width: 18px !important;
        height: 18px !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><path d="M3 13h2l3-6 4 6 3-9 3 3h3" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><circle cx="7" cy="7" r="1.5" fill="white"/><circle cx="17" cy="17" r="1.5" fill="white"/></svg>') !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        visibility: visible !important;
    }
}

@media (max-width: 576px) {
    .market-table .btn-primary.btn-sm {
        width: 32px !important;
        height: 32px !important;
        border-radius: 6px !important;
        background-color: #00E0FF !important;
        border: 1px solid #00E0FF !important;
        color: transparent !important;
        font-size: 0 !important;
        text-indent: -9999px !important;
        overflow: hidden !important;
        line-height: 0 !important;
        white-space: nowrap !important;
        position: relative !important;
        padding: 0 !important;
    }
    
    /* Force hide all text in the button */
    .market-table .btn-primary.btn-sm * {
        color: transparent !important;
        font-size: 0 !important;
        text-indent: -9999px !important;
        visibility: hidden !important;
    }
    
    .market-table .btn-primary.btn-sm:hover {
        background-color: #00C4E0 !important;
        border-color: #00C4E0 !important;
        color: white !important;
        transform: scale(1.05) !important;
    }
    
    /* Add SVG logo */
    .market-table .btn-primary.btn-sm::before {
        content: '';
        display: block !important;
        width: 16px !important;
        height: 16px !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><path d="M3 13h2l3-6 4 6 3-9 3 3h3" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><circle cx="7" cy="7" r="1.5" fill="white"/><circle cx="17" cy="17" r="1.5" fill="white"/></svg>') !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        visibility: visible !important;
    }
}