/* GreenLab Soft — Auth (login / register) */

body.auth-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Cairo", Tahoma, sans-serif;
  color: #1a2c2e;
  background: #e8eee9;
  overflow-x: hidden;
}

.auth-shell {
  min-height: 100vh;
  padding: 0;
  display: block;
  background: transparent;
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 1.05fr) minmax(300px, 0.95fr);
}

/* Form side (right in RTL) */
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 2.5rem;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(11, 110, 102, 0.08), transparent 45%),
    linear-gradient(180deg, #f4f8f6 0%, #eef3f1 100%);
}

.auth-card {
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid rgba(213, 224, 221, 0.9);
  border-radius: 20px;
  box-shadow:
    0 18px 48px rgba(20, 53, 58, 0.1),
    0 2px 8px rgba(20, 53, 58, 0.04);
  padding: 1.85rem 1.7rem 1.6rem;
  animation: authCardIn 0.55s ease-out both;
}

.auth-card.auth-card-wide {
  width: min(560px, 100%);
}

@keyframes authCardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-card-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}

.auth-card-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0b1220;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 6px 16px rgba(11, 110, 102, 0.14);
  display: grid;
  place-items: center;
}

.auth-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.auth-card-top h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #14353a;
  line-height: 1.25;
}

.auth-card-top p {
  margin: 0.2rem 0 0;
  color: #5d7275;
  font-size: 0.9rem;
  font-weight: 600;
}

.auth-lead {
  margin: 0 0 1.15rem;
  color: #5d7275;
  font-size: 0.92rem;
  line-height: 1.6;
}

.auth-card .alert {
  margin-bottom: 1rem;
}

.auth-form {
  display: grid;
  gap: 0.85rem;
}

.auth-form.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-form .full {
  grid-column: 1 / -1;
}

.auth-field label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
  color: #334155;
}

.auth-field label i {
  color: #0b6e66;
  font-size: 0.8rem;
  width: 1rem;
  text-align: center;
}

.auth-field input {
  width: 100%;
  border: 1px solid #d7e3df;
  border-radius: 12px;
  padding: 0.78rem 0.9rem;
  font-family: inherit;
  background: #f8fbfa;
  color: #0f172a;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.auth-field input:hover {
  background: #fff;
  border-color: #b7d4cf;
}

.auth-field input:focus {
  outline: none;
  background: #fff;
  border-color: #0b6e66;
  box-shadow: 0 0 0 4px rgba(11, 110, 102, 0.12);
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.05rem 0;
  cursor: pointer;
  color: #334155;
  user-select: none;
}

.auth-remember > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-checkmark {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border: 2px solid #b7d4cf;
  border-radius: 7px;
  background: #f8fbfa;
  color: transparent;
  font-size: 0.7rem;
  transition: all 0.15s ease;
}

.auth-remember > input:checked + .auth-checkmark {
  border-color: #0b6e66;
  background: #0b6e66;
  color: #fff;
}

.auth-remember > input:focus-visible + .auth-checkmark {
  box-shadow: 0 0 0 4px rgba(11, 110, 102, 0.14);
}

.auth-remember strong,
.auth-remember small {
  display: block;
}

.auth-remember strong {
  font-size: 0.86rem;
  line-height: 1.35;
}

.auth-remember small {
  margin-top: 0.08rem;
  color: #7a8f92;
  font-size: 0.72rem;
  font-weight: 600;
}

.auth-submit {
  margin-top: 0.35rem;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #0b6e66 0%, #0d9488 55%, #14b8a6 100%);
  box-shadow: 0 10px 24px rgba(11, 110, 102, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: filter 0.15s, transform 0.15s;
}

.auth-submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

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

.auth-footer {
  margin: 1.25rem 0 0;
  text-align: center;
  color: #5d7275;
  font-size: 0.9rem;
  font-weight: 600;
}

.auth-footer a {
  color: #0b6e66;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.auth-footer a:hover {
  border-bottom-color: #0b6e66;
}

.auth-hint {
  margin: 0.15rem 0 0;
  color: #7a8f92;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Brand side (left visually in RTL — second column) */
.auth-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 2rem;
  text-align: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(11, 110, 102, 0.9) 0%, rgba(8, 70, 64, 0.82) 45%, rgba(20, 53, 58, 0.94) 100%),
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.18), transparent 55%),
    linear-gradient(180deg, #0b6e66, #14353a);
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.07) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.06) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 40% 40%, rgba(76, 175, 140, 0.25) 0 40%, transparent 70%);
  background-size: 48px 48px, 36px 36px, 100% 100%;
  opacity: 0.9;
  pointer-events: none;
  animation: authHeroDrift 18s ease-in-out infinite alternate;
}

@keyframes authHeroDrift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.06) translate(-1.5%, 1%); }
}

.auth-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.auth-hero-logo {
  width: min(260px, 70vw);
  height: auto;
  margin: 0 auto 1.35rem;
  border-radius: 0;
  display: block;
  background: transparent;
  border: none;
  box-shadow: none;
  animation: authLogoIn 0.7s ease-out both;
}

.auth-hero-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}

@keyframes authLogoIn {
  from { opacity: 0; transform: scale(0.85) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-hero-en {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0;
  color: #b8f5c8;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.auth-hero-ar {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 800;
  margin: 0.35rem 0 0.2rem;
  color: #fff;
}

.auth-hero-tag {
  font-size: 0.98rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.5rem;
}

.auth-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  text-align: right;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  font-weight: 700;
  font-size: 0.9rem;
}

.auth-features li i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  color: #b8f5c8;
  flex-shrink: 0;
}

.auth-hero-foot {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 920px) {
  .auth-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .auth-hero {
    order: -1;
    min-height: auto;
    padding: 2rem 1.25rem 1.75rem;
  }

  .auth-hero-logo {
    width: min(160px, 55vw);
    height: auto;
    margin-bottom: 0.9rem;
  }

  .auth-features {
    display: none;
  }

  .auth-hero-foot {
    display: none;
  }

  .auth-panel {
    padding: 1.25rem 1rem 2rem;
  }

  .auth-card,
  .auth-card.auth-card-wide {
    width: min(520px, 100%);
    border-radius: 16px;
    padding: 1.4rem 1.2rem;
  }
}

@media (max-width: 560px) {
  .auth-form.two-col {
    grid-template-columns: 1fr;
  }

  .auth-card-top {
    flex-direction: column;
    text-align: center;
  }

  .auth-card-top h1 {
    font-size: 1.2rem;
  }
}
