/* Auth Pages Styles */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-dark);
}

/* Back button */
.back-btn {
    position: fixed;
    top: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    z-index: 100;
}

.back-btn:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.back-btn .material-symbols-outlined {
    font-size: 20px;
}

/* Auth container */
.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 32px;
}

/* Auth header */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Form styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: var(--text-primary);
}

.toggle-password .material-symbols-outlined {
    font-size: 22px;
}


/* Phone input */
.phone-input-group {
    display: flex;
    gap: 10px;
}

.phone-input {
    flex: 1;
}

/* Custom Country Selector */
.country-selector {
    position: relative;
}

.country-selector-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 110px;
    transition: all 0.2s ease;
}

.country-selector-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.country-selector-btn .country-flag {
    display: flex;
    align-items: center;
}

.country-selector-btn .country-flag img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 4px;
}

.country-selector-btn .country-code {
    font-weight: 500;
}

.country-selector-btn .arrow {
    margin-left: auto;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.country-selector.open .arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.country-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 320px;
    max-height: 350px;
    background: #1a1a1a;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.country-selector.open .country-dropdown {
    display: flex;
}

/* Search */
.country-search-wrapper {
    padding: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.country-search-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
}

.country-search-input .material-symbols-outlined {
    font-size: 20px;
    color: var(--text-secondary);
}

.country-search-input input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
}

.country-search-input input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Country list */
.country-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.country-list::-webkit-scrollbar {
    width: 6px;
}

.country-list::-webkit-scrollbar-track {
    background: transparent;
}

.country-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.country-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.country-item .country-flag-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.country-item .country-name {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.country-item .country-dial {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.country-item.hidden {
    display: none;
}

/* Forgot password link */
.forgot-password {
    text-align: right;
    margin-top: -8px;
}

.forgot-password a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password a:hover {
    color: var(--text-primary);
}

/* Submit button */
.btn-submit {
    width: 100%;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-submit:hover {
    background: rgba(255, 255, 255, 0.18);
}

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

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.auth-divider span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Google button */
.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 14px;
    color: #333;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-google:hover {
    background: #fff;
    transform: translateY(-1px);
}

.btn-google img {
    width: 22px;
    height: 22px;
}

/* Auth footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.auth-footer a:hover {
    opacity: 0.8;
}

/* Error message */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    color: #ef4444;
    font-size: 0.9rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Success message */
.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    color: #22c55e;
    font-size: 0.9rem;
    display: none;
}

.success-message.show {
    display: block;
}

/* Loading spinner */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== DISABLED ACCOUNT MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal-overlay.hidden {
    display: none;
}

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

.disabled-modal {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 32px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.3s ease;
}

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

.disabled-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.disabled-icon .material-symbols-outlined {
    font-size: 42px;
    color: #ef4444;
}

.disabled-modal h2 {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px 0;
}

.disabled-modal p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.btn-disabled-ok {
    width: 100%;
    padding: 14px 24px;
    background: #ef4444;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-disabled-ok:hover {
    background: #dc2626;
}

/* Responsive */
@media (max-width: 480px) {
    .back-btn {
        top: 16px;
        left: 16px;
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .auth-container {
        padding: 80px 16px 24px;
    }

    .auth-card {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .auth-logo {
        width: 56px;
        height: 56px;
    }
}