* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  direction: rtl;
  min-height: 100vh;
  background: #eef3ef;
  color: #111827;
  overflow-x: hidden;
}

.admin-login-page {
  width: 100%;
  min-height: 100vh;
  padding: 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.login-bg-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
  opacity: 0.9;
}

.shape-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(18, 49, 37, 0.18), transparent 68%);
  top: -160px;
  right: -120px;
}

.shape-2 {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(18, 49, 37, 0.14), transparent 70%);
  left: -130px;
  bottom: -140px;
}

.shape-3 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(18, 49, 37, 0.12), transparent 70%);
  right: 48%;
  bottom: 8%;
}

.login-shell {
  width: min(1080px, 100%);
  min-height: 640px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
}

/* Right Visual Panel */
.login-visual-panel {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 34px;
  background:
    linear-gradient(145deg, rgba(18, 49, 37, 0.96), rgba(12, 94, 58, 0.92)),
    #123125;
  color: #ffffff;
  box-shadow:
    0 32px 80px rgba(18, 49, 37, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.login-visual-panel::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  top: -180px;
  left: -130px;
}

.login-visual-panel::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  right: -90px;
  bottom: -80px;
}

.visual-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}

.visual-logo {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-logo i {
  font-size: 24px;
}

.visual-top span {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 3px;
}

.visual-top h1 {
  font-size: 22px;
  font-weight: 900;
}

.visual-center {
  position: relative;
  z-index: 2;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 0;
}

.access-ring {
  width: 174px;
  height: 174px;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.access-ring-inner {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: #ffffff;
  color: #123125;
  display: flex;
  align-items: center;
  justify-content: center;
}

.access-ring-inner i {
  font-size: 44px;
}

.visual-center h2 {
  font-size: 34px;
  font-weight: 950;
  margin-bottom: 14px;
}

.visual-center p {
  max-width: 420px;
  font-size: 15px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.76);
}

.visual-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.visual-stats div {
  min-height: 82px;
  border-radius: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.visual-stats strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 6px;
}

.visual-stats span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

/* Left Form Card */
.login-form-card {
  align-self: center;
  min-height: 560px;
  border-radius: 34px;
  padding: 42px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(18, 49, 37, 0.1);
  backdrop-filter: blur(16px);
  box-shadow:
    0 30px 75px rgba(17, 24, 39, 0.1),
    0 12px 28px rgba(18, 49, 37, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-card-header {
  margin-bottom: 34px;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(18, 49, 37, 0.08);
  color: #123125;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 18px;
}

.form-card-header h2 {
  color: #111827;
  font-size: 30px;
  font-weight: 950;
  margin-bottom: 10px;
}

.form-card-header p {
  color: #667085;
  font-size: 14px;
  line-height: 1.9;
}

.admin-login-form {
  width: 100%;
}

.login-field {
  margin-bottom: 5px;
}

.login-field label {
  display: block;
  color: #344054;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 9px;
}

.input-wrapper {
  height: 54px;
  border: 1px solid #d7dce2;
  border-radius: 18px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  transition:
    border 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.input-wrapper:focus-within {
  border-color: #123125;
  box-shadow: 0 0 0 4px rgba(18, 49, 37, 0.09);
  transform: translateY(-1px);
}

.input-wrapper > i {
  color: #98a2b3;
  font-size: 16px;
  flex-shrink: 0;
}

.input-wrapper input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #111827;
  font-size: 14px;
}

.input-wrapper input::placeholder {
  color: #98a2b3;
}

.toggle-password {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: rgba(18, 49, 37, 0.06);
  color: #123125;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.field-error {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: #dc2626;
  font-size: 12px;
}

.login-btn {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #123125, #0c5e3a);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 18px 30px rgba(18, 49, 37, 0.22);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 38px rgba(18, 49, 37, 0.28);
}

.login-btn:active {
  transform: translateY(0);
}

.login-note {
  margin-top: 20px;
  min-height: 48px;
  border-radius: 16px;
  background: rgba(18, 49, 37, 0.055);
  color: #475467;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.8;
}

.login-note i {
  color: #123125;
}

/* Responsive */
@media (max-width: 960px) {
  .login-shell {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .login-visual-panel {
    min-height: 280px;
    padding: 28px;
  }

  .visual-center {
    min-height: 210px;
  }

  .access-ring {
    display: none;
  }

  .visual-center h2 {
    font-size: 26px;
  }

  .visual-stats {
    display: none;
  }

  .login-form-card {
    min-height: auto;
    padding: 34px;
  }
}

@media (max-width: 520px) {
  .admin-login-page {
    padding: 16px;
  }

  .login-shell {
    gap: 14px;
  }

  .login-visual-panel,
  .login-form-card {
    border-radius: 24px;
  }

  .login-visual-panel {
    padding: 24px;
  }

  .visual-top h1 {
    font-size: 18px;
  }

  .visual-center h2 {
    font-size: 23px;
  }

  .visual-center p {
    font-size: 13px;
  }

  .login-form-card {
    padding: 26px 20px;
  }

  .form-card-header h2 {
    font-size: 24px;
  }

  .input-wrapper {
    height: 50px;
    border-radius: 14px;
  }

  .login-btn {
    height: 52px;
    border-radius: 14px;
  }
}
.login-error {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
  font-size: 13px;
  line-height: 1.8;
  border: 1px solid rgba(220, 38, 38, 0.18);
}
