.auth-container {
      max-width: 500px;
      margin: 40px auto;
      background: var(--surface, #ffffff);
      border-radius: 32px;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
      overflow: hidden;
    }

    .auth-header {
      padding: 32px 32px 16px 32px;
      text-align: center;
    }

    .auth-header h2 {
      font-size: 24px;
      font-weight: 700;
      margin-bottom: 8px;
      color: var(--text, #1e293b);
    }

    .auth-header p {
      color: var(--muted, #64748b);
      font-size: 14px;
    }

    .auth-body {
      padding: 0 32px 32px 32px;
    }

    .step-indicator {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-bottom: 32px;
    }

    .step {
      width: 40px;
      height: 40px;
      border-radius: 40px;
      background: var(--bg-light, #f1f5f9);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      color: var(--muted, #64748b);
      position: relative;
    }

    .step.active {
      background: var(--accent, #2e7d32);
      color: white;
    }

    .step-line {
      flex: 1;
      height: 2px;
      background: var(--bg-light, #f1f5f9);
      max-width: 60px;
    }

    .step-line.active {
      background: var(--accent, #2e7d32);
    }

    .form-group {
      margin-bottom: 20px;
    }

    .form-label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 6px;
      color: var(--text, #1e293b);
    }

    .phone-input {
      display: flex;
      align-items: center;
      background: var(--bg-light, #f1f5f9);
      border-radius: 20px;
      padding: 4px 16px 4px 4px;
      border: 1px solid transparent;
      transition: all 0.2s;
      direction: ltr; /* چپ‌چین کردن کل فیلد */
      text-align: left;
    }

    .phone-input:focus-within {
      border-color: var(--accent, #2e7d32);
      background: white;
    }

    .phone-input .prefix {
      color: var(--text, #1e293b);
      font-weight: 600;
      margin-right: 8px;
      font-size: 16px;
      order: 0; /* پیش‌شماره سمت چپ می‌مونه */
    }

    .phone-input input {
      flex: 1;
      border: none;
      background: transparent;
      padding: 14px 0;
      font-size: 16px;
      direction: ltr; /* چپ‌چین */
      text-align: left;
      order: 1;
    }

    .phone-input input:focus {
      outline: none;
    }

    .otp-inputs {
      display: flex;
      gap: 12px;
      justify-content: center;
      margin: 24px 0;
      direction: ltr;
    }

    .otp-input {
      width: 56px;
      height: 64px;
      background: var(--bg-light, #f1f5f9);
      border: 1px solid transparent;
      border-radius: 20px;
      text-align: center;
      font-size: 24px;
      font-weight: 600;
      color: var(--text, #1e293b);
    }

    .otp-input:focus {
      outline: none;
      border-color: var(--accent, #2e7d32);
      background: white;
    }

    .timer {
      text-align: center;
      color: var(--muted, #64748b);
      font-size: 14px;
      margin: 16px 0;
    }

    .resend-link {
      color: var(--accent, #2e7d32);
      font-weight: 600;
      cursor: pointer;
      background: none;
      border: none;
    }

    .resend-link:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .terms {
      font-size: 12px;
      color: var(--muted, #64748b);
      text-align: center;
      margin-top: 24px;
    }

    .terms a {
      color: var(--accent, #2e7d32);
      text-decoration: none;
    }

    .message-box {
      background: #f0f9ff;
      border: 1px solid #bae6fd;
      border-radius: 16px;
      padding: 16px;
      margin-bottom: 24px;
      color: #0369a1;
      font-size: 14px;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .message-box.warning {
      background: #fff7ed;
      border-color: #fed7aa;
      color: #9a3412;
    }

    .message-box.success {
      background: #f0fdf4;
      border-color: #bbf7d0;
      color: #166534;
    }

    /* حالت موبایل */
    @media (max-width: 640px) {
      .auth-container {
        margin: 20px 16px;
      }
      
      .auth-header,
      .auth-body {
        padding-left: 20px;
        padding-right: 20px;
      }
      
      .otp-input {
        width: 48px;
        height: 56px;
        font-size: 20px;
      }
    }

.notification {
    position: fixed; top: 20px; right: 20px; z-index: 9999;
    min-width: 300px; padding: 15px 20px; border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.notification.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.notification.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.login-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.btn-robika, .btn-telegram, .btn-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-robika {
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: white;
}

.btn-robika:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,180,216,0.3);
}

.btn-telegram {
    background: #26A5E4;
    color: white;
}

.btn-email {
    background: #6c63ff;
    color: white;
}

.btn-robika .icon, 
.btn-telegram .icon, 
.btn-email .icon {
    font-size: 24px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--bg-light, #e2e8f0);
}

.divider span {
    padding: 0 16px;
    color: var(--muted, #64748b);
    font-size: 13px;
}

.bot-guide {
    background: #f0f9ff;
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
    border-right: 4px solid #00b4d8;
}

.guide-text {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #0c4a6e;
}

.guide-note {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}