/* ===================== Forms (Login & Register) ===================== */
.login-container, .register-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.login-card, .register-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(138, 0, 74, 0.15),
              0 8px 24px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 480px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.login-card::before, .register-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #E91E63 0%, #8a004a 100%);
}

.login-header, .register-header {
  text-align: center;
  margin-bottom: 35px;
}

.login-icon, .register-icon {
  font-size: 64px;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

.login-title, .register-title {
  font-size: 28px;
  font-weight: 800;
  color: #8a004a;
  margin: 0 0 8px 0;
}

.login-subtitle, .register-subtitle {
  font-size: 15px;
  color: #666;
  margin: 0;
}

.login-form, .register-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.modern-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: #fafafa;
  font-family: 'Tajawal', sans-serif;
}

.modern-input:focus {
  outline: none;
  border-color: #E91E63;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
  transform: translateY(-2px);
}

.phone-input-group {
  display: flex;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #e0e0e0;
  background: #fafafa;
  transition: all 0.3s ease;
}

.phone-input-group:focus-within {
  border-color: #E91E63;
  box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
}

.phone-prefix {
  background: linear-gradient(135deg, #E91E63 0%, #8a004a 100%);
  color: white;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.phone-input {
  flex: 1;
  border: none;
  border-radius: 0;
  background: #fafafa;
  padding-right: 45px;
}

.phone-input:focus {
  background: #fff;
  box-shadow: none;
  transform: none;
}

.input-with-icon {
  position: relative;
}

.input-with-icon .modern-input {
  padding-left: 45px;
}

.validation-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 5;
}

.validation-icon.show {
  opacity: 1;
}

.validation-icon.valid::before {
  content: "✓";
  color: #4caf50;
}

.validation-icon.invalid::before {
  content: "✗";
  color: #e74c3c;
}

.phone-input-group .validation-icon {
  left: auto;
  right: 15px;
}

.validation-message {
  font-size: 12px;
  margin-top: 5px;
  min-height: 18px;
  transition: all 0.3s ease;
}

.validation-message.error {
  color: #e74c3c;
}

.validation-message.success {
  color: #4caf50;
}

.password-strength {
  margin-top: 8px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.password-strength-bar {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.password-strength-bar.weak {
  width: 33%;
  background: #e74c3c;
}

.password-strength-bar.medium {
  width: 66%;
  background: #f39c12;
}

.password-strength-bar.strong {
  width: 100%;
  background: #4caf50;
}

.modern-btn-primary {
  background: linear-gradient(135deg, #E91E63 0%, #c2185b 100%);
  color: white;
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.3);
  margin-top: 8px;
}

.modern-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.4);
}

.modern-btn-primary:active {
  transform: translateY(0);
}

.btn-arrow {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.modern-btn-primary:hover .btn-arrow {
  transform: translateX(-4px);
}

.modern-btn-secondary {
  background: white;
  color: #8a004a;
  width: 100%;
  padding: 14px 24px;
  border: 2px solid #E91E63;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modern-btn-secondary:hover {
  background: #fce4ef;
  transform: translateY(-2px);
}

.forgot-link {
  text-align: left;
  margin-top: -8px;
}

.forgot-link a {
  color: #8a004a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.forgot-link a:hover {
  color: #E91E63;
  text-decoration: underline;
}

.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 8px 0;
  color: #999;
  font-size: 14px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e0e0e0;
}

.login-divider span {
  padding: 0 16px;
}

.error-message {
  min-height: 20px;
  color: #e74c3c;
  font-size: 14px;
  text-align: center;
  margin-top: -8px;
  font-weight: 600;
}

.register-footer {
  text-align: center;
  margin-top: 8px;
  color: #666;
  font-size: 15px;
}

.link-primary {
  color: #E91E63;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.link-primary:hover {
  color: #8a004a;
  text-decoration: underline;
}



