:root {
    --primary: #4a6cf7;
    --primary-dark: #3a5bd9;
    --text: #333;
    --text-light: #666;
    --border: #eee;
    --bg: #f9f9f9;
    --white: #fff;
  }
  
  .auth-container {
    font-family: Tahoma, sans-serif;
    direction: rtl;
    max-width: 420px;
    margin: 20px auto;
    padding: 25px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  }
  
  /* استایل‌های کاربر */
  .user-profile { text-align: center; padding: 15px 0; }
  
  .user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 15px;
    overflow: hidden;
  }
  
  .user-avatar img { width: 100%; height: 100%; object-fit: cover; }
  
  .user-name { font-size: 18px; font-weight: 700; margin-bottom: 5px; }
  .user-username { color: var(--text-light); font-size: 14px; margin-bottom: 15px; }
  
  .user-details {
    margin: 20px 0;
    padding-top: 15px;
    border-top: 1px solid var(--border);
  }
  
  .detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
  }
  
  .detail-label { color: var(--text-light); }
  .detail-value { color: var(--text); }
  
  .auth-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
  }
  
  .btn {
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    flex: 1;
    transition: all 0.2s;
  }
  
  .btn-primary {
    background: var(--primary);
    color: var(--white);
  }
  
  .btn-secondary {
    background: var(--bg);
    color: var(--primary);
  }
  
  .btn:hover { opacity: 0.9; transform: translateY(-1px); }
  
  /* فرم‌های ورود */
  .auth-form { display: none; }
  .auth-form.active { display: block; animation: fadeIn 0.3s; }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .form-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
  }
  
  .form-group { margin-bottom: 15px; }
  
  .form-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--text-light);
  }
  
  .form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    direction: ltr;
  }
  
  .form-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(74,108,247,0.1);
  }
  
  .g-recaptcha { margin: 15px 0; direction: ltr; }
  
  .submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .submit-btn:hover {
    background: var(--primary-dark);
  }
  
  /* کد OTP */
  .otp-container {
    display: none;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
  }
  
  .otp-container.active { display: block; }
  
  .otp-title {
    text-align: center;
    margin-bottom: 10px;
    font-size: 15px;
  }
  
  .otp-inputs {
    display: flex;
    gap: 8px;
    margin: 15px 0;
    justify-content: center;
  }
  
  .otp-input {
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 18px;
    border: 1px solid var(--border);
    border-radius: 6px;
  }
  
  .otp-input:focus { border-color: var(--primary); outline: none; }
  
  .resend-otp {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
  }
  
  .resend-link {
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
  }
  
  /* روش‌های جایگزین */
  .methods-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-light);
    font-size: 13px;
  }
  
  .methods-divider::before,
  .methods-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border);
  }
  
  .methods-divider::before { margin-left: 10px; }
  .methods-divider::after { margin-right: 10px; }
  
  .method-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .method-btn {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    cursor: pointer;
    text-align: center;
    font-size: 13px;
    transition: all 0.2s;
  }
  
  .method-btn:hover {
    background: #f1f1f1;
  }
  
  /* آیکون‌های سفارشی */
  .icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 5px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
  }
  
  .icon-user { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234a6cf7'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E"); }
  .icon-email { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234a6cf7'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E"); }
  .icon-mobile { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234a6cf7'%3E%3Cpath d='M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z'/%3E%3C/svg%3E"); }
  .icon-google { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234a6cf7'%3E%3Cpath d='M12.545 10.239v3.821h5.445c-.712 2.315-2.647 3.972-5.445 3.972-3.332 0-6.033-2.701-6.033-6.032s2.701-6.032 6.033-6.032c1.498 0 2.866.549 3.921 1.453l2.814-2.814C17.503 2.332 15.139 1 12.545 1 7.021 1 2.545 5.477 2.545 11s4.476 10 10 10c8.396 0 10-7.496 10-10 0-.67-.069-1.325-.173-1.961H12.545z'/%3E%3C/svg%3E"); }
  
  @media (max-width: 480px) {
    .auth-container { padding: 20px; margin: 10px; }
    .method-buttons { grid-template-columns: 1fr; }
  }

  .armo-auth-settings {
    max-width: 900px;
    direction: rtl;
    text-align: right;
}

.armo-auth-settings-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.armo-auth-settings-section h2.title {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.armo-auth-settings .form-table th {
    width: 250px;
}

.armo-auth-settings .description {
    color: #666;
    font-style: normal;
    margin-top: 5px;
}

.armo-auth-settings input[type="text"],
.armo-auth-settings input[type="password"],
.armo-auth-settings textarea {
    width: 100%;
    max-width: 400px;
}

.armo-auth-settings .large-text {
    width: 100%;
    max-width: 600px;
    height: 100px;
}
.google-signin-btn {
    background: #4285F4;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.google-signin-btn:hover {
    background: #3367D6;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* استایل خطاها */
.auth-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    text-align: center;
}

/* انیمیشن لرزش برای خطا */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* استایل فیلدهای OTP */
.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.otp-input:focus {
    border-color: #4a6cf7;
    outline: none;
}