/* ===== english fonts ===== */

@font-face {
  font-family: 'sitelyregular-en';
  src: url('../fonts/en/SitelyFont-Regular-en.ttf') format('truetype');
  font-weight: 500;
}

/* ===== arabic fonts ===== */

@font-face {
  font-family: 'SitelyFont-Light-ar';
  src: url('../fonts/ar/SitelyFont-Light-ar.ttf') format('truetype');
  font-weight: 500;
}

@font-face {
  font-family: 'SitelyFont-Bold-ar';
  src: url('../fonts/ar/SitelyFont-Bold-ar.ttf') format('truetype');
  font-weight: 500;
}

@font-face {
  font-family: 'SitelyFont-Book-ar';
  src: url('../fonts/ar/SitelyFont-Book-ar.ttf') format('truetype');
  font-weight: 500;
}

@font-face {
  font-family: 'SitelyFont-Medium-ar';
  src: url('../fonts/ar/SitelyFont-Medium-ar.ttf') format('truetype');
  font-weight: 500;
}

/* ---------------------------------------------------------- */
/* ---------------------------------------------------------- */

:root {
  --cia-bg: radial-gradient(circle at top, #161925 0, #03030a 45%, #000 100%);
}


html,
body {
  height: 100%;
}


/* ---------------------------------------------------------- */
/* ---------------------------------------------------------- */
/* ---------------------------------------------------------- */
/* --------------------- Login page base -------------------- */

.login-body {
  margin: 0;
  height: 100vh; 
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cia-bg);
  color: #f9fafb;
  position: relative;
  display: flex;
  align-items: center;  
  justify-content: center; 
  overflow: hidden;    
}

.login-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.puzzle-gate,
.login-card {
  text-align: center;
  padding: 32px 24px 40px;
  border-radius: 24px;
  background: radial-gradient(circle at top left,
              rgba(255,255,255,0.06),
              rgba(15,23,42,0.95));
  border: 1px solid rgba(148,163,184,0.6);
  box-shadow: 0 20px 50px rgba(0,0,0,0.9);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  margin: 0; 
}

/* ---------------------------------------------------------- */
/* ---------------------------------------------------------- */
/* ---------------------------------------------------------- */
/* ----------------------- PUZZLE GATE ---------------------- */

.puzzle-text p {
  margin: 0;
}

.puzzle-text {
  font-size: 0.95rem;
  font-family: 'SitelyFont-Medium-ar';
  color: #e5e7eb;
}

.puzzle-hint {
  margin-top: 6px;
  font-size: 0.8rem;
  color: rgba(148,163,184,0.9);
}

.puzzle-logo-wrap {
  margin: 28px auto 20px;
  display: flex;
  justify-content: center;
}

.puzzle-logo {
  width: 160px;
  max-width: 60%;
  filter: grayscale(1);
}

.puzzle-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.puzzle-input {
  width: 80px;
  text-align: center;
  font-size: 1.4rem;
  padding: 6px 4px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.8);
  background: rgba(15,23,42,0.95);
  color: #f9fafb;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  outline: none;
}

.puzzle-input::placeholder {
  color: rgba(148,163,184,0.6);
}

.puzzle-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(56,189,248,0.9);
  background: radial-gradient(circle at top,
              rgba(56,189,248,0.4),
              rgba(15,23,42,0.9));
  color: #e0f2fe;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 600;
  min-width: 80px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.puzzle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.7);
  background: radial-gradient(circle at top,
              rgba(56,189,248,0.55),
              rgba(15,23,42,1));
}

.puzzle-error {
  margin-top: 10px;
  min-height: 16px;
  font-size: 0.8rem;
  color: #fecaca;
}

.puzzle-shake {
  animation: puzzleShake 0.28s ease;
}

@keyframes puzzleShake {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-6px); }
  50%  { transform: translateX(6px); }
  75%  { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

.puzzle-logo-glitch {
  animation: logoGlitch 0.35s steps(2, end) 2;
}

@keyframes logoGlitch {
  0%   { transform: translate(0,0); filter: none; }
  20%  { transform: translate(-2px,2px); filter: hue-rotate(10deg); }
  40%  { transform: translate(3px,-3px); filter: hue-rotate(-15deg); }
  60%  { transform: translate(-1px,1px); filter: contrast(1.4); }
  80%  { transform: translate(1px,-1px); filter: hue-rotate(20deg); }
  100% { transform: translate(0,0); filter: none; }
}

.puzzle-logo-fade {
  animation: logoFadeOut 0.45s ease forwards;
}

@keyframes logoFadeOut {
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

.is-hidden {
  display: none !important;
}



/* ---------------------------------------------------------- */
/* ---------------------------------------------------------- */
/* ---------------------------------------------------------- */
/* ------------------- Login form styling ------------------- */

.login-card-hidden {
  display: none;
}

.login-title {
  margin: 0 0 20px;
  font-family: 'SitelyFont-Medium-ar';
  font-size: 1.25rem;
  font-weight: 600;
  color: #f9fafb;
}

.login-form {
  display: flex;
  font-family: 'SitelyFont-Medium-ar';
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.login-form label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(209,213,219,0.9);
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.96);
  color: #f9fafb;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-form input::placeholder {
  color: rgba(148,163,184,0.7);
}

.login-form input:focus {
  border-color: rgba(56,189,248,0.9);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.6);
  background: rgba(15,23,42,1);
}

.login-card .btn-primary {
  margin-top: 8px;
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(56,189,248,0.9);
  background: radial-gradient(circle at top,
              rgba(56,189,248,0.55),
              rgba(15,23,42,0.95));
  color: #e0f2fe;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-card .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.8);
  background: radial-gradient(circle at top,
              rgba(56,189,248,0.7),
              rgba(15,23,42,1));
}

.login-lang-switch {
  margin-top: 16px;
  font-size: 0.8rem;
  color: rgba(148,163,184,0.9);
}

.login-lang-switch a {
  color: #e5e7eb;
  text-decoration: none;
}

.login-lang-switch a:hover {
  text-decoration: underline;
}



@media (max-width: 480px) {
  .login-container {
    max-width: 100%;
    padding: 16px;
  }

  .puzzle-gate,
  .login-card {
    padding: 24px 16px 30px;
  }

  .puzzle-logo {
    width: 130px;
  }
}


.login-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;       
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}


.login-card {
  margin: 0;
  text-align: left;        
}

.login-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.login-side-logo {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.login-logo-circle {
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0,
              rgba(248,250,252,0.18),
              rgba(15,23,42,0.96));
  border: 1px solid rgba(148,163,184,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(0,0,0,0.85);
  overflow: hidden;
}

.login-logo-circle img {
  width: 80%;
  height: auto;
  filter: grayscale(1);
}

.login-logo-caption {
  margin: 0;
  font-size: 0.7rem;
  font-family: 'SitelyFont-Medium-ar';
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(156,163,175,0.95);
  text-align: center;
}


.login-side-form {
  flex: 1.3;
}

.login-lang-switch {
  margin-top: 16px;
  font-size: 0.8rem;
  color: rgba(148,163,184,0.9);
  text-align: left;
}


@media (max-width: 768px) {
  .login-split {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .login-side-form {
    width: 100%;
    text-align: left;
  }

  .login-lang-switch {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .login-container {
    max-width: 100%;
    padding: 16px;
  }

  .puzzle-gate,
  .login-card {
    padding: 24px 16px 30px;
  }

  .login-logo-circle {
    width: 130px;
    height: 130px;
  }
}


.login-card {
  margin: 0;
  text-align: initial;
}

.login-side-form {
  flex: 1.3;
  display: flex;
  flex-direction: column;
  align-items: center;    
}

.login-side-form .login-title {
  width: 100%;
  text-align: center;
}


.login-form {
  width: 100%;
  max-width: 340px;       
  margin: 12px auto 0;     
  display: flex;
  flex-direction: column;
  gap: 14px;
}


.login-form label {
  position: center;
  width: 92%;
  align-items: flex-start;
}


.login-side-form .login-lang-switch {
  width: 100%;
  text-align: center;
}


/* ---------------------------------------------------------- */
/* ---------------------------------------------------------- */
/* ---------------------------------------------------------- */
/* ------------------ Starfield background ------------------ */

.cia-stars {
  position: fixed;               
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image:
      radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.7), transparent),
      radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,0.5), transparent),
      radial-gradient(1px 1px at 70% 30%, rgba(255,255,255,0.6), transparent),
      radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,0.5), transparent),
      radial-gradient(2px 2px at 20% 50%, rgba(255,255,255,0.4), transparent),
      radial-gradient(2px 2px at 60% 10%, rgba(255,255,255,0.35), transparent),
      radial-gradient(2px 2px at 80% 90%, rgba(255,255,255,0.4), transparent);
  background-size: 600px 600px;
  opacity: 0.65;
  animation: ciaStarsDrift 10s linear infinite;
  pointer-events: none;
  z-index: 0;                    
}

.cia-stars-front {
  animation-duration: 90s;
  opacity: 0.35;
}

@keyframes ciaStarsDrift {
  0% {
    transform: translate3d(0,0,0);
  }
  100% {
    transform: translate3d(-200px, -200px, 0);
  }
}

/* --------------------------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------------------------- */
/* ----------------- This Web Was Created By Sitely Web Agency [www.sitely.ly] ----------------- */ 
