/* Auth Pages Styles */

.auth-wrapper {
    min-height: 100vh;
    padding: 20px;
    background: var(--bg-dark);
}

/* Top Bar */
.auth-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.support-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.support-icon:hover {
    color: var(--accent-cyan);
}

.support-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-cyan);
    cursor: pointer;
}

.lang-selector svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.lang-selector span {
    font-size: 14px;
    color: var(--text-primary);
}

/* Logo Section */
.auth-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0 40px;
}

.auth-logo-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
}

.auth-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-brand {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 1px;
}

/* Form Container */
.auth-form-container {
    max-width: 400px;
    margin: 0 auto;
}

/* Tabs */
.auth-tabs {
    display: flex;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s;
}

.auth-tab.active {
    background: var(--accent-gradient);
    color: #000;
    font-weight: 600;
}

/* Form */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0 14px;
    height: 50px;
    transition: border-color 0.2s;
}

.input-wrapper:focus-within {
    border-color: var(--accent-cyan);
}

.input-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    color: var(--text-secondary);
}

.input-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

/* Password Toggle */
.password-toggle {
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    margin-left: 10px;
}

.password-toggle svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.password-toggle:hover {
    color: var(--accent-cyan);
}

/* Phone Input */
.phone-input {
    padding-left: 0;
}

.country-code-select {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
    height: 100%;
    border-right: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
    min-width: 80px;
}

/* Simplified version for India-only */
.country-code-select[style*="pointer-events: none"] {
    cursor: default;
    background: var(--bg-card-secondary);
}

.country-code-select .selected-code {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.country-code-select svg {
    width: 16px;
    height: 16px;
    fill: var(--text-secondary);
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-top: 8px;
    display: none;
    z-index: 100;
    max-height: 300px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.country-code-select.open .country-dropdown {
    display: block;
}

.country-search {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-card-secondary);
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.country-search::placeholder {
    color: var(--text-muted);
}

.country-list {
    max-height: 240px;
    overflow-y: auto;
}

.country-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.country-item:hover {
    background: var(--bg-card-secondary);
}

.country-item .country-name {
    font-size: 14px;
    color: var(--text-primary);
}

.country-item .country-code {
    font-size: 14px;
    color: var(--accent-cyan);
    font-weight: 500;
}

.phone-input input {
    padding-left: 12px;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: opacity 0.2s;
}

.auth-submit-btn:hover {
    opacity: 0.9;
}

/* Switch Link */
.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
    margin-left: 6px;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Scrollbar for country list */
.country-list::-webkit-scrollbar {
    width: 6px;
}

.country-list::-webkit-scrollbar-track {
    background: var(--bg-card);
}

.country-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.country-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}