/* Auth Layout Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  direction: rtl;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(to bottom, #e0f7fa 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 1rem;
}

.auth-container {
  width: 100%;
  max-width: 500px;
}

.auth-header {
  text-align: center;
  color: #00acc1;
}

.auth-header img {
  max-width: 100px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.auth-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #00acc1;
}

.auth-header p {
  font-size: 0.95rem;
  color: #666;
}

.auth-card {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  overflow: hidden;
  position: relative;
}

/* Login and Register Form Styles */

.roles {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.role {
  flex: 1;
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.role.selected {
  border-color: #00acc1;
  background-color: #e0f7fa;
}

.role img {
  width: 50px;
  height: 50px;
  margin-bottom: 5px;
}

.forgot {
  text-align: left;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.forgot a {
  color: #00acc1;
  text-decoration: none;
}

.signup {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
}

.signup a {
  color: #00acc1;
  text-decoration: none;
}

.btn {
  background-color: #00bcd4;
  color: white;
  border: none;
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0097a7;
}

.btn-skip {
  background: transparent;
  color: #607d8b;
  border: none;
  width: 100%;
  padding: 10px;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 4px;
  text-decoration: underline;
}

.btn-skip:hover {
  color: #455a64;
}

.form-group {
  margin-bottom: 1rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
.form-control {
  width: 100%;
  padding: 0.75rem;
  margin: 0.5rem 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  direction: rtl;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
.form-control:focus {
  outline: none;
  border-color: #00acc1;
  box-shadow: 0 0 0 3px rgba(0, 172, 193, 0.1);
}

.btn-primary {
  background-color: #00bcd4;
  color: white;
  border: none;
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #0097a7;
}

.alert {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #00acc1;
}

.form-header h2 {
  color: #00acc1;
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
  font-weight: 700;
}

.form-header p {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
}

.back-to-login {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.back-to-login a {
  color: #00acc1;
  text-decoration: none;
  font-weight: 500;
}

.back-to-login a:hover {
  text-decoration: underline;
}

.text-danger {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: block;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.d-flex {
  display: flex;
}

.justify-content-between {
  justify-content: space-between;
}

.align-items-center {
  align-items: center;
}

.fw-bold {
  font-weight: 700;
}

/* Register Form Styles */

.register-container {
  background: transparent;
  padding: 0;
  border-radius: 0;
  width: 100%;
  max-width: 100%;
  box-shadow: none;
  margin: 0;
  border: none;
}

.register-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #00acc1;
}

.register-container h2 {
  color: #00acc1;
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
  font-weight: 700;
}

.register-subtitle {
  color: #666;
  font-size: 1rem;
  margin: 0;
}

.register-form {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-label i {
  color: #00acc1;
  font-size: 1rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #fff;
}

.form-control:focus {
  outline: none;
  border-color: #00acc1;
  box-shadow: 0 0 0 4px rgba(0, 172, 193, 0.15);
  background-color: #fff;
}

.form-control:hover {
  border-color: #b2ebf2;
}

.gender-options {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
}

.radio-label input[type="radio"] {
  margin-left: 0.5rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #00acc1;
}

.radio-label span {
  user-select: none;
}

.text-danger {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.alert {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.form-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.btn-register {
  background: linear-gradient(135deg, #00bcd4 0%, #00acc1 100%);
  color: white;
  border: none;
  padding: 1rem 3.5rem;
  font-size: 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.btn-register:hover {
  background: linear-gradient(135deg, #00acc1 0%, #0097a7 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

.btn-register:active {
  transform: translateY(0);
}

.btn-register:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #666;
}

.login-link a {
  color: #00acc1;
  text-decoration: none;
  font-weight: 600;
}

.login-link a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .auth-card {
    padding: 1.5rem;
    border-radius: 1rem;
  }

  .auth-header h1 {
    font-size: 1.5rem;
  }

  .auth-header img {
    max-width: 100px;
  }

  body {
    padding: 0.5rem;
  }

  .register-container {
    max-width: 95%;
    padding: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .register-container h2 {
    font-size: 1.3rem;
  }

  .btn-register {
    width: 100%;
    padding: 0.85rem;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1rem;
  }

  .gender-options {
    gap: 1rem;
  }
}

