﻿:root {
  --gold: #d4a84f;
  --gold-light: #f0d28a;
  --dark: #07131f;
  --dark-2: #0f2234;
  --blue: #1e88e5;
  --white: #ffffff;
  --text: #d9e3ec;
  --input-bg: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cairo", sans-serif;
}

body {
  overflow: hidden;
  background: #000;
}

/* ===== BACKGROUND ===== */

.bg-wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  animation: slowZoom 32s infinite alternate ease-in-out;
  transition: background-image 0.8s ease;
}

.bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(212, 168, 79, 0.18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(30, 136, 229, 0.15), transparent 25%);
}

@keyframes slowZoom {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.55);
  }
}

.overlay-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(212, 168, 79, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.3;
}

/* ===== PAGE ===== */

.page-container {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-shell {
  width: 1200px;
  max-width: 100%;
  min-height: 700px;
  display: flex;
  border-radius: 34px;
  overflow: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(8, 16, 28, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 25px 90px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  animation: unblur 3s forwards ease-in-out;
}

@keyframes unblur {
  from {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  to {
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
  }
}

/* ===== LEFT SIDE ===== */

.welcome-side {
  flex: 1;
  position: relative;
  padding: 70px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 2;
}

.brand img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(212, 168, 79, 0.3));
}

.brand-title {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 2px;
  color: white;
}

.hero-content {
  max-width: 560px;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 62px;
  line-height: 1.12;
  font-weight: 900;
  margin-bottom: 28px;
}

.hero-content p {
  font-size: 18px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
}

.gold-text {
  color: var(--gold);
}

.mini-cards {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.mini-card {
  min-width: 180px;
  padding: 20px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  transition: 0.35s;
  flex: 1;
  height: 150px;
  container-type: inline-size;
}

.mini-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.12);
}

.mini-card h4 {
  margin: 0;
  /*font-size: 14px;*/
  color: var(--gold-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 10cqw;
}

.mini-card span {
  /*font-size: 30px;*/
  font-weight: 800;
  display: block;
  margin-top: 10px;
  font-size: 12cqw;
}

/* ===== RIGHT SIDE ===== */

.login-side {
  width: 440px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  padding: 55px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.login-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.02), transparent);
  pointer-events: none;
}

.login-header {
  margin-bottom: 40px;
  text-align: center;
}

.login-header h2 {
  color: white;
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 10px;
}

.login-header p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.input-group-modern {
  margin-bottom: 25px;
}

.input-group-modern label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 600;
}

.input-shell {
  position: relative;
}

.input-shell i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
}

html[dir="ltr"] .input-shell i {
  left: 18px;
}

html[dir="rtl"] .input-shell i {
  right: 18px;
}

.modern-input {
  width: 100%;
  height: 58px;
  border-radius: 16px !important;
  border: 1px solid var(--border) !important;
  background: var(--input-bg) !important;
  color: white !important;
  padding-inline: 52px 52px !important;
  outline: none !important;
  box-shadow: none !important;
  transition: 0.3s;
  font-size: 15px !important;
}

.modern-input:focus {
  border-color: rgba(212, 168, 79, 0.7) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 0 0 4px rgba(212, 168, 79, 0.12) !important;
}

.modern-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.password-toggle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: 0.3s;
  inset-inline-end: 43px;
}

.password-toggle:hover {
  color: var(--gold);
}

.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
  margin-bottom: 28px;
}

.remember-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.remember-check input {
  position: relative !important;
  opacity: 1 !important;
  pointer-events: all !important;
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.login-btn {
  width: 100%;
  height: 58px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), #b8862f);
  color: #111;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: 0.35s;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(212, 168, 79, 0.22);
}

.login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(212, 168, 79, 0.35);
}

.login-btn:focus {
  outline: none;
}

.bottom-text {
  margin-top: 35px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  line-height: 2;
  font-size: 14px;
}

.bottom-text span {
  color: var(--gold);
  font-weight: 700;
}

.language-wrapper {
  margin-top: 35px;
  text-align: center;
}

.language-selector {
  min-width: 150px;
  height: 45px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  outline: none;
  padding: 0 12px;
}

.language-selector option {
  color: black;
}

/* ===== RESPONSIVE ===== */
/* =========================
   TABLET + MOBILE
========================= */

@media (max-width: 991px) {
  body {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .page-container {
    min-height: 100dvh;
    height: auto;
    padding: 18px;
    align-items: center;
  }

  .login-shell {
    flex-direction: column;
    width: 100%;
    max-width: 540px;
    min-height: auto;
    border-radius: 28px;
  }

  /* KEEP ONLY LOGO/TITLE */
  .welcome-side {
    min-height: auto;
    padding: 20px;
    justify-content: center;
    align-items: center;
  }

  /* HIDE CONTENT */
  .hero-content,
  .mini-cards {
    display: none;
  }

  .brand {
    justify-content: center;
  }

  .brand img {
    width: 64px;
    height: 64px;
  }

  .brand-title {
    font-size: 28px;
  }

  .login-side {
    width: 100%;
    padding: 30px 24px 34px;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 576px) {
  .page-container {
    padding: 12px;
  }

  .login-shell {
    border-radius: 22px;
  }

  .welcome-side {
    padding: 18px 16px 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 50px;
    height: 50px;
  }

  .brand-title {
    font-size: 22px;
    letter-spacing: 1px;
  }

  .login-side {
    padding: 24px 16px 28px;
  }

  .login-header {
    margin-bottom: 20px;
  }

  .login-header h2 {
    font-size: 24px;
  }

  .login-header p {
    font-size: 12px;
  }

  .input-group-modern {
    margin-bottom: 18px;
  }

  .modern-input {
    height: 50px;
    border-radius: 12px !important;
    font-size: 14px !important;
  }

  .login-btn {
    height: 50px;
    border-radius: 12px;
    font-size: 15px;
  }

  .bottom-text {
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.7;
  }

  .language-wrapper {
    margin-top: 18px;
  }

  .language-selector {
    height: 42px;
    border-radius: 10px;
    font-size: 14px;
  }
}
