:root {
  --color-primary: #3d99f5;
  --color-primary-dark: #2a7bc8;
  --color-error: #ff4757;
  --color-success: #4BB543;
  --color-warning: #FFA502;
  --color-text-dark: #0d121c;
  --color-text-medium: #121417;
  --color-text-light: #61758a;
  --color-text-white: #ffffff;
  --color-background-body: #f7fafc;
  --color-background-input: #f0f2f5;
  --color-border: #e5e8eb;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

.signup-main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 15px;
  background-color: var(--color-background-body);
  overflow-x: hidden;
}

.signup-flex-container {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 30px;
  max-width: 880px;
  width: 100%;
}

.signup-text-side {
  max-width: 420px;
  width: 100%;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 20px;
  animation: fadeIn 0.5s ease;
  align-self: stretch;
}

.signup-seo-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.signup-seo-paragraph {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.signup-container {
  align-self: stretch;
  width: 100%;
  max-width: 360px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 18px;
  animation: fadeIn 0.5s ease;
  overflow-y: auto;
}

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

.signup-header {
  text-align: center;
  margin-bottom: 25px;
}

.signup-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.signup-subtitle {
  font-size: 15px;
  color: var(--color-text-light);
  margin: 0;
}

.alert {
  display: flex;
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  animation: slideIn 0.3s ease;
}

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

.alert-error {
  background-color: rgba(255, 71, 87, 0.1);
  border-left: 4px solid var(--color-error);
}

.alert-icon {
  margin-left: 10px;
  display: flex;
}

.alert-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--color-error);
}

.alert-content {
  flex: 1;
}

.alert-content p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-dark);
  line-height: 1.5;
}

.form-group {
  margin-bottom: 16px;
  position: relative;
}

.form-input {
  width: 100%;
  padding: 11px 45px 6px 40px;
  background-color: var(--color-background-input);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 14px;
  color: var(--color-text-dark);
  text-align: right;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(61, 153, 245, 0.2);
}

.input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
}

.input-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--color-text-light);
}

.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password svg {
  width: 100%;
  height: 100%;
  fill: var(--color-text-light);
}

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

.error-message {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--color-error);
  text-align: right;
  animation: fadeIn 0.3s ease;
}

.password-strength {
  margin: 12px 0 20px;
}

.strength-meter {
  height: 4px;
  background-color: var(--color-background-input);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.strength-bar {
  height: 100%;
  width: 0;
  background-color: var(--color-error);
  transition: var(--transition);
}

.strength-text {
  font-size: 12px;
  color: var(--color-text-light);
  text-align: right;
}

.strength-text span {
  font-weight: 600;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.btn-text{
  font-weight: 600;
}
.submit-btn:hover {
  background: var(--color-primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn-text {
  position: relative;
  z-index: 1;
}

.loading-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 6px;
  display: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.submit-btn.loading .btn-text {
  visibility: hidden;
}

.submit-btn.loading .loading-spinner {
  display: block;
  position: absolute;
}

.login-prompt {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--color-text-light);
}

.login-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.login-link:hover {
  text-decoration: underline;
}

.username-group {
  display: flex;
  align-items: center;
  background-color: var(--color-background-input);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.username-group:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(61, 153, 245, 0.2);
}

.static-url {
  padding: 0 10px;
  color: var(--color-text-light);
  font-size: 13px;
  white-space: nowrap;
  direction: ltr;
}

.username-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--color-text-dark);
  text-align: right;
}

.username-input::placeholder {
  color: #bbb;
}

@media (max-width: 992px) {
  .signup-flex-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .signup-text-side {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .signup-section {
    flex-direction: column-reverse;
    gap: 20px;
  }

  .signup-container {
    align-self: center;
  }
}

@media (max-width: 600px) {
  .signup-container {
    padding: 16px 12px;
    max-width: 100%;
  }

  .signup-title {
    font-size: 20px;
  }

  .signup-subtitle {
    font-size: 13px;
  }

  .signup-text-side {
    padding: 16px;
  }
}

@media (max-width: 400px) {
  .input-icon,
  .toggle-password {
    right: 8px;
  }
}

.signup-section {
  justify-content: center;
  padding: 40px 20px;
  flex: 1;
  display: flex;
  gap: 30px;
  align-items: center;
}

.divider {
  height: 1px;
  background: var(--black-100);
  margin: 1.5rem 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider::before {
  content: 'أو';
  position: absolute;
  background: white;
  padding: 0 1rem;
  font-size: 0.9rem;
  color: var(--black-500);
}

.login-social-items {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.login-social-items a {
  flex: 1 1 100%;
  max-width: 50%;
}

@media (min-width: 768px) {
  .login-social-items a {
    flex: 1 1 calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
  }
}

.google-btn,
.facebook-btn,
.twitter-btn {
  background: white;
  padding: 0.2rem;
  border-radius: 8px;
  border: 1px solid var(--black-100);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  line-height: 1.5;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  width: 100%;
}

.google-btn:hover,
.facebook-btn:hover,
.twitter-btn:hover {
  background: var(--black-50);
  border-color: var(--black-200);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.google-btn svg,
.facebook-btn svg,
.twitter-btn svg {
  width: 30px;
  height: 30px;
}
