/* Login Page Specific Styles */
body {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

html {
  height: 100%;
}

.container {
  width: 100%;
  max-width: 1100px;
  padding: 20px 30px;
  margin: 0 20px;
}

.logo-container {
  text-align: center;
  margin-bottom: 37px;
}

.logo {
  width: 150px;
  height: 150px;
  margin: 0 auto 0;
  background: radial-gradient(
    circle,
    rgba(243, 198, 35, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.company-name {
  color: var(--color-primary);
  font-size: 22px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(243, 198, 35, 0.2);
}

.page-title {
  color: #ffffffcc;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 0;
}

.login-card {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(243, 198, 35, 0.3);
  border-radius: 16px;
  padding: 40px 35px 30px;
  margin: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 60px rgba(243, 198, 35, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f3c623, transparent);
}

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

.form-group label {
  display: block;
  color: #ffffffcc;
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 500;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input,
.input-wrapper select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(243, 198, 35, 0.4);
  border-radius: 8px;
  color: #ffffff;
  font-size: 15px;
  font-family: "Cairo", sans-serif;
  transition: all 0.3s ease;
  outline: none;
  direction: rtl;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
  border-color: #f3c623;
  box-shadow: 0 0 20px rgba(243, 198, 35, 0.2);
  background: rgba(0, 0, 0, 0.7);
}

.input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.input-wrapper select option {
  background: #000000;
  color: #ffffff;
}

.phone-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(243, 198, 35, 0.4);
  border-radius: 8px;
  padding: 14px 18px;
  transition: all 0.3s ease;
}

.phone-input-wrapper:focus-within {
  border-color: #f3c623;
  box-shadow: 0 0 20px rgba(243, 198, 35, 0.2);
  background: rgba(0, 0, 0, 0.7);
}

.phone-prefix {
  color: var(--color-primary);
  font-weight: 600;
  white-space: nowrap;
  font-size: 15px;
}

.phone-input-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  font-family: "Cairo", sans-serif;
  direction: rtl;
}

.phone-input-wrapper input:focus {
  outline: none;
  box-shadow: none;
  background: transparent;
  border: none;
}

.phone-input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.submit-button {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #ffdf6d 0%, #f3c623 100%);
  border: none;
  border-radius: 8px;
  color: #000000;
  font-size: 16px;
  font-weight: 600;
  font-family: "Cairo", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: 0 4px 15px rgba(243, 198, 35, 0.3);
  position: relative;
  overflow: hidden;
}

.submit-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.submit-button:hover::before {
  width: 300px;
  height: 300px;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(243, 198, 35, 0.5);
}

.submit-button:active {
  transform: translateY(0);
}

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

.toggle-form {
  text-align: center;
  margin-top: 25px;
  font-size: 14px;
  color: #ffffffcc;
}

.toggle-form p {
  margin-bottom: 0;
}

.toggle-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  margin-right: 0.25em;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -ms-transition: all 0.3s;
  -o-transition: all 0.3s;
}

.toggle-link:hover {
  transform: translateX(-10px);
  -webkit-transform: translateX(-10px);
  -moz-transform: translateX(-10px);
  -ms-transform: translateX(-10px);
  -o-transform: translateX(-10px);
}

.to-admin-log {
  text-align: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(243, 198, 35, 0.2);
  font-size: 14px;
  color: #ffffffcc;
}

.to-admin-log p {
  margin: 0;
}

.to-admin-log .toggle-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  margin-right: 0.25em;
  transition: all 0.3s ease;
}

/* Form Container Animation */
.form-container {
  display: none;
}

.form-container.active {
  display: block;
  animation: slideDown 0.4s ease-out;
}

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

/* Responsive Design */
@media (max-width: 600px) {
  .container {
    padding: 30px 20px;
    margin: 10px;
  }

  .login-card {
    padding: 30px 25px;
    margin: 0;
  }

  .company-name {
    font-size: 18px;
  }

  .page-title {
    font-size: 14px;
  }

  .logo {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 20px 15px;
  }

  .login-card {
    padding: 25px 20px;
    margin: 0;
  }

  .company-name {
    font-size: 16px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .input-wrapper input,
  .input-wrapper select {
    padding: 12px 14px;
    font-size: 14px;
  }

  .phone-input-wrapper {
    padding: 12px 14px;
  }
}
