/**
 * Register Page Styles
 * استایل‌های خاص صفحه ثبت‌نام
 */

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.soft-ui-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: rgba(44, 44, 44, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.auth-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 193, 7, 0.2),
    0 0 30px rgba(255, 193, 7, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 193, 7, 0.2);
}

.form-control-soft-ui {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-control-soft-ui:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.btn-soft-ui {
  width: 100%;
  padding: 0.875rem;
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-soft-ui:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

.btn-soft-ui:active:not(:disabled) {
  transform: translateY(0);
}

.btn-soft-ui:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.password-strength-bar {
  height: 4px;
  border-radius: 2px;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.password-strength-weak {
  background: var(--color-danger);
  width: 33%;
}

.password-strength-medium {
  background: var(--color-warning);
  width: 66%;
}

.password-strength-strong {
  background: var(--color-success);
  width: 100%;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gradient);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h2 {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  background-color: var(--bg-card-hover);
  color: var(--text-primary);
  box-sizing: border-box;
}

.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
  outline: none;
}

.btn-submit {
  width: 100%;
  padding: 0.875rem;
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: #ffffff;
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-submit #submitText {
  display: inline-block;
  text-align: center;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

.auth-footer a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.auth-footer a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

.password-strength {
  height: 4px;
  background: var(--bg-card-hover);
  border-radius: 2px;
  margin-top: 5px;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  transition: all 0.3s;
  border-radius: 2px;
}

/* RTL Styles for Registration Form */
.form-group,
.form-group label,
.form-control {
  text-align: right;
  direction: rtl;
}

.form-group label {
  display: block;
  text-align: right;
  text-transform: none;
}

.form-control::placeholder {
  text-align: right;
  direction: rtl;
}

.auth-header h2,
.auth-header p,
.auth-footer {
  text-align: center;
}

.form-row {
  display: flex;
  flex-direction: row-reverse;
  gap: var(--spacing-md);
}

.form-row .form-group {
  flex: 1;
}

