/* Custom Auth Layout */
body.auth-body-hide-overflow {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #050505;
    color: #fff;
    font-family: Tahoma, Arial, sans-serif;
}

.auth-split-layout {
    display: flex;
    min-height: 100vh;
    background: #050505;
    color: #fff;
}

/* Visual Side (Left) */
.auth-visual {
    flex: 1.2;
    position: relative;
    background: url('../images/auth-bg.jpg') center/cover no-repeat;
    display: none;
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 5, 5, 0.95) 0%, rgba(26, 26, 26, 0.7) 100%);
    z-index: 1;
}

.visual-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.visual-logo {
    font-size: 4rem;
    color: #ff4500;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.visual-content p {
    color: #ccc;
    font-size: 1.2rem;
}

/* Form Side (Right) */
.auth-form-side {
    width: 100%;
    max-width: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Glassmorphism Magic */
.glow-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-color, #ff4500) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

.auth-glass-box {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    width: 85%;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
}

.auth-header p {
    color: #aaa;
    margin: 0;
    font-size: 0.95rem;
}

/* Steps Animation */
.auth-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.auth-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Inputs */
.auth-glass-box input[type="text"],
.auth-glass-box input[type="password"],
.auth-glass-box input[type="tel"],
.auth-glass-box input[type="email"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.auth-glass-box input:focus {
    border-color: var(--accent-color, #ff4500);
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.1);
}

/* Radio Pill Buttons (Nationality Toggle) */
.auth-radio-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.radio-pill {
    flex: 1;
    cursor: pointer;
    text-align: center;
}

.radio-pill input[type="radio"] {
    display: none;
}

.radio-pill span {
    display: block;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    border-radius: 8px;
    color: #aaa;
    transition: 0.3s;
    font-size: 14px;
}

.radio-pill input[type="radio"]:checked+span {
    background: rgba(255, 69, 0, 0.1);
    border-color: #ff4500;
    color: #fff;
}

/* Buttons & Utilities */
.btn-primary,
.btn-outline {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    box-sizing: border-box;
}

.btn-primary {
    background: #ff4500;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
}

.btn-primary:hover {
    background: #ff571a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.4);
}

.btn-primary:disabled {
    background: #555;
    color: #aaa;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid #444;
}

.btn-outline:hover {
    border-color: #ff4500;
    color: #ff4500;
}

.btn-text {
    background: transparent;
    border: none;
    color: #ff4500;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 5px;
    font-family: inherit;
}

.btn-text:hover {
    color: #ff6a33;
    text-decoration: underline;
}

.w-100 {
    width: 100%;
}

.mt-3 {
    margin-top: 15px;
}

.mb-3 {
    margin-bottom: 15px;
}

.d-flex {
    display: flex;
}

.gap-2 {
    gap: 10px;
}

.flex-1 {
    flex: 1;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: #888;
}

.text-white {
    color: #fff;
}

/* Badge & Messages */
.user-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #222;
}

.btn-change-id {
    color: #ff4500;
    text-decoration: none;
    font-size: 0.85rem;
}

.auth-message-box {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

.auth-message-box.error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
    display: block;
}

.auth-message-box.success {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
    display: block;
}

.otp-input {
    text-align: center;
    letter-spacing: 15px;
    font-size: 24px !important;
    font-weight: bold;
}

@media (min-width: 992px) {
    .auth-visual {
        display: flex;
    }
}



/* Phone Input Group with Country Code */
.phone-input-group {
    display: flex;
    direction: ltr;
    /* حل مشکل ۱: قرار دادن کد کشور در سمت چپ */
    gap: 10px;
    margin-bottom: 15px;
}

.phone-input-group input {
    margin-bottom: 0 !important;
    flex: 1;
    /* حل مشکل ۲: دادن تمام فضای باقی‌مانده به فیلد شماره */
    text-align: left;
    direction: ltr;
}

.country-select {
    flex: 0 0 110px;
    /* حل مشکل ۲: ثابت و کوچک کردن عرض دراپ‌داون */
    width: 110px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    color: #fff;
    padding: 15px 5px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
    cursor: pointer;
    direction: ltr;

    /* حل مشکل ۳: اجبار مرورگر به استفاده از فونت‌های رنگی ایموجی (در صورت پشتیبانی OS) */
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", Tahoma, sans-serif;
}

.country-select:focus {
    border-color: var(--accent-color, #ff4500);
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.1);
}

.country-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.7);
}

.country-select option {
    background: #111;
    color: #fff;
    padding: 10px;
}



/* OTP Login Divider */
.divider {
    text-align: center;
    border-bottom: 1px solid #333;
    line-height: 0.1em;
    margin: 25px 0 20px;
}

.divider span {
    background: rgba(20, 20, 20, 1);
    padding: 0 15px;
    color: #777;
    font-size: 0.85rem;
}

/* Dynamic OTP Method Buttons */
.btn-otp-method {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    color: #ccc;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: block;
    text-align: right;
    margin-bottom: 10px;
    font-family: inherit;
    direction: rtl;
}

.btn-otp-method:hover {
    border-color: var(--accent-color, #ff4500);
    color: #fff;
    background: rgba(255, 69, 0, 0.1);
    transform: translateY(-2px);
}