/* themes/modern_premium.css - Fixed Mobile Layout */

:root {
    --primary-color: #1a1a2e;
    --primary-hover: #2a2a4e;
    --primary-text: #ffffff;
    --bg-dark: #000000;
    --bg-darker: #000000;
    --card-bg: #000000;
    --text-main: #ffffff;
    --text-muted: #888888;
    --border-color: #333333;
    --input-bg: #1a1a2e;
    --input-text: #ffffff;
    --input-border: #333344;
    --input-placeholder: #666677;
    --success: #10b981;
    --error: #ef4444;
    --radius: 16px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

/* Auth Container - Full Width on Mobile */
.auth-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0;
}

.auth-card {
    width: 100%;
    background: transparent;
    padding: 20px 0;
    border: none;
    box-shadow: none;
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.brand-title {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.brand-title i {
    color: #dc2626;
    font-size: 1.8rem;
}

.brand-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.lang-btn {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.lang-btn:hover {
    border-color: #666;
    color: #aaa;
}

.lang-btn.active {
    background: #333;
    color: white;
    border-color: #333;
}

/* Tabs - DARK MODE */
.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.tab-btn {
    background: #0d0d15;
    border: 1px solid #2a2a3a;
    color: #777788;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.tab-btn i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.tab-btn span {
    display: inline;
}

.tab-btn:hover {
    background: #1a1a2e;
    border-color: #3a3a4a;
    color: #aaaacc;
}

.tab-btn.active {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    color: #ffffff;
    border-color: #3a3a5a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tab-btn.active i {
    opacity: 1;
    color: #8b5cf6;
}

/* Forms */
.auth-form {
    display: none;
    width: 100%;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-label {
    display: block;
    color: var(--text-main);
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: right;
}

.form-label i {
    display: none;
}

/* Form Input - DARK MODE */
.form-input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--input-text);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: var(--input-placeholder);
}

.form-input:focus {
    border-color: #4a4a6a;
    box-shadow: 0 0 0 3px rgba(100, 100, 150, 0.2);
    background: #222233;
}

/* Submit Button - Dark Mode */
.submit-btn {
    width: 100%;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(145deg, #2a2a4e, #1e2a4e);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn i {
    display: none;
}

/* Google Button */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: #111;
    border: 1px solid #333;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 16px;
}

.google-btn:hover {
    background: #1a1a1a;
    border-color: #444;
}

/* Divider */
.or-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    width: 100%;
}

.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #333;
}

.or-divider span {
    padding: 0 16px;
}

/* Bottom Links */
.auth-bottom-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-bottom-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.auth-bottom-link a:hover {
    text-decoration: underline;
}

/* Footer */
.auth-footer {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 20px;
}

.support-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.support-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.85rem;
}

.support-link:hover {
    text-decoration: underline;
}

.support-link.telegram {
    color: #0088cc;
}

.support-link.email {
    color: #888;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Hint */
.form-hint {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 6px;
}

/* Form Divider */
.form-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #333;
}

.form-divider span {
    padding: 0 12px;
}

/* Pricing Section (if visible on login) */
.pricing-section {
    margin-bottom: 20px;
    text-align: center;
}

.pricing-title {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.pricing-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.pricing-card {
    background: #111;
    border: 1px solid #333;
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}

.buy-token-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #0088cc;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    margin-top: 16px;
}

/* RTL Support */
html[dir="rtl"] .form-label {
    text-align: right;
}

html[dir="rtl"] .auth-bottom-link a {
    margin-left: 0;
    margin-right: 5px;
}

/* Responsive - Ensure full width */
@media (max-width: 480px) {
    body {
        padding: 12px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .auth-container {
        max-width: 100%;
    }

    .auth-card {
        padding: 12px 0;
    }

    .brand-title {
        font-size: 1.75rem;
    }

    .form-input {
        padding: 12px 14px;
    }
}