/* Global reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Cairo", sans-serif;
  background: url('img/rgister-bg.png') no-repeat center center/cover;
  color: #4b0049;
  direction: rtl;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.register-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}
.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.2em;
  color: #666;
}

.password-strength {
  margin-top: 8px;
  font-size: 0.9em;
  color: #b33b70;
}

.strength-bar {
  height: 6px;
  border-radius: 4px;
  background-color: #ddd;
  margin-top: 4px;
  transition: background-color 0.3s, width 0.3s;
}

.strength-bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
  width: 0%;
  background-color: red;
  transition: width 0.3s ease-in-out;
}

.match-error {
  color: red;
  font-size: 0.9em;
  margin-top: 5px;
}

.register-container {
  display: flex;
  width: 90%;
  max-width: 1200px;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);

}

/* Left panel */
.register-left {
  background: #f5f8f4;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.left-content h2 {
  font-weight: 600;
  font-size: 30px;
  color: #6E2753;
}

.left-content .bold {
  color: #6E2753;
  font-weight: 700;
}

.left-content p {
  margin-top: 10px;
  color: #555;
}

.logo {
  width: 244px;
  margin-bottom: 15px;
}

.btn-secondary {
  display: inline-block;
  background: #5C8161;
  color: #fff;
  border-radius: 8px;
  padding: 10px 30px;
  margin-top: 15px;
  text-decoration: none;
  transition: background 0.3s ease;
  font-size: 21px;
}

.btn-secondary:hover {
  background: #486641;
}

/* Right panel */
.register-right {
  flex: 1.3;
  background: #fff;
  padding: 50px 60px;
}

.register-right h2 {
  color: #6E2753;
  margin-bottom: 25px;
  text-align: center;
    font-size: 48px;
}

.register-form label {
  display: block;
  margin: 10px 0 5px;
  color: #333;
  font-size: 16px;
  font-weight: bold;
}

.register-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dbdada;
  border-radius: 6px;
  min-height: 50px;
  font-size: 15px;
  margin-bottom: 15px;
}

.register-form input:focus {
  outline: none;
  border-color: #6E2753;
}

.terms {
  font-size: 13px;
  color: #777;
  margin: 10px 0;
}

.btn-primary {
  width: 100%;
  background: #5C8161;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #486641;
}

/* Bottom bar */
footer.bottom-bar {
  background: #A481B4;
  color: #fff;
  text-align: center;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  width: 100px;
  margin-bottom: 15px;
}
.error-message {
  background: #ffe6e6;
  color: #a30000;
  border: 1px solid #ffaaaa;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  margin-bottom: 15px;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .register-container {
    flex-direction: column;
  }

  .register-left,
  .register-right {
    width: 100%;
    padding: 30px;
  }

  .register-right {
    padding: 30px 20px;
  }
}
