/* =========================================
   CRYPTO TEK AI - AUTH PAGE STYLES
   Login / Register / Verify forms
   ========================================= */

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-tab:hover {
    color: rgba(255,255,255,0.7);
}

.auth-tab.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.auth-tab i {
    font-size: 16px;
}

/* Auth Content Panels */
.auth-content {
    display: none;
}

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

/* Form Styles */
.auth-form {
    text-align: left;
}

.auth-form-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.auth-form-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    margin-bottom: 6px;
}

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

.auth-input-icon {
    position: absolute;
    left: 14px;
    color: rgba(255,255,255,0.3);
    font-size: 14px;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
    outline: none;
}

.auth-input:focus {
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.auth-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.auth-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Password Toggle */
.auth-password-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
}

.auth-password-toggle:hover {
    color: rgba(255,255,255,0.6);
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.auth-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-submit-btn .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* Form Footer */
.auth-footer-text {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-footer-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

/* Error / Success Messages */
.auth-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.auth-message.active {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.auth-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34d399;
}

/* ═══════════════════════════════════════
   VERIFICATION OVERLAY
   ═══════════════════════════════════════ */

.verify-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.verify-overlay.active {
    display: flex;
}

.verify-card {
    background: var(--bg-secondary, #1a1f35);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.verify-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(255,107,53,0.2), rgba(255,107,53,0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--primary-color);
}

.verify-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.verify-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.verify-email-highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* Code Input - 6 digit boxes */
.verify-code-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.verify-code-input {
    width: 48px;
    height: 56px;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: all 0.2s ease;
}

.verify-code-input:focus {
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.verify-code-input.filled {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.08);
}

/* Resend */
.verify-resend {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
}

.verify-resend a {
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
}

.verify-resend a:hover {
    text-decoration: underline;
}

.verify-resend a.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ═══════════════════════════════════════
   TELEGRAM LINK MODAL
   ═══════════════════════════════════════ */

.tg-link-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tg-link-overlay.active {
    display: flex;
}

.tg-link-card {
    background: var(--bg-card, #1a1f35);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.tg-link-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #0088cc, #00a8e8);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 136, 204, 0.3);
}

.tg-link-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin-bottom: 8px;
}

.tg-link-desc {
    font-size: 14px;
    color: var(--text-muted, rgba(255,255,255,0.6));
    margin-bottom: 24px;
}

.tg-link-code-box {
    background: rgba(0, 136, 204, 0.1);
    border: 1px solid rgba(0, 136, 204, 0.25);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.tg-link-command {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    font-weight: 500;
    color: #0088cc;
    word-break: break-all;
    user-select: all;
}

.tg-link-copy-btn {
    background: rgba(0, 136, 204, 0.15);
    border: 1px solid rgba(0, 136, 204, 0.3);
    color: #0088cc;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.tg-link-copy-btn:hover {
    background: rgba(0, 136, 204, 0.25);
}

.tg-link-bot-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0088cc;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.tg-link-bot-btn:hover {
    background: #0077b5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.tg-link-expires {
    font-size: 12px;
    color: var(--text-muted, rgba(255,255,255,0.4));
}

.tg-link-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: rgba(255,255,255,0.5);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tg-link-close:hover {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 480px) {
    .auth-tabs {
        flex-direction: column;
    }

    .verify-code-inputs {
        gap: 6px;
    }

    .verify-code-input {
        width: 42px;
        height: 50px;
        font-size: 20px;
    }
}
