
/* ======================================================================
   🔐 Login Page - صفحة تسجيل الدخول (Ultramodern)
   ====================================================================== */

/*-----------------------------------------------------الخطوط---------------------------------------------*/

@font-face {
	font-family: 'spfont';
	src: url('../fonts/majallab.ttf') format('truetype');
}

@font-face {
	font-family: 'spfont3n';
	src: url('../fonts/Effra_Md1.ttf') format('truetype');
}

/*--------------------------------------------------------------------------------------------------*/

body {
  background: linear-gradient(145deg, #1a1d2e 0%, #252a3d 50%, #1e2233 100%);
  background-attachment: fixed;
  color: #000;
  font: 14px;
  font-family: 'Noto Kufi Arabic', spfont3n, sans-serif;
  margin: 0 auto;
  padding: 0;
  position: relative;
  min-height: 100vh;
}

/* Add subtle animated gradient overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(74, 108, 247, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(103, 59, 126, 0.06) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

h1 { font-size: 28px; }
h2 { font-size: 26px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }
h1, h2, h3, h4, h5, h6 { color: #563D64; }
small { font-size: 10px; }
b, strong { font-weight: bold; }
a { text-decoration: none; }
a:hover { text-decoration: none; }
.left { float: left; }
.right { float: right; }
.alignleft { float: left; margin-right: 15px; }
.alignright { float: right; margin-left: 15px; }

.clearfix:after,
form:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.container {
  margin: 8% auto;
  position: relative;
  width: 420px;
  z-index: 1;
}

/* ======================================================================
   📦 Login Card with Glassmorphism
   ====================================================================== */

#content {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin: 0 auto;
  padding: 40px 0 0;
  position: relative;
  text-align: center;
  width: 400px;
  border-radius: 20px;
  overflow: visible;
}

#content h1 {
  color: #3a3a5c;
  font: bold 24px;
  font-family: 'Noto Kufi Arabic', spfont, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin: 10px 0 30px;
}

#content h1:before,
#content h1:after {
  content: "";
  height: 1px;
  position: absolute;
  top: 10px;
  width: 27%;
}

#content h1:after {
  background: linear-gradient(to left, rgba(74, 108, 247, 0.4) 0%, transparent 100%);
  right: 0;
}

#content h1:before {
  background: linear-gradient(to right, rgba(74, 108, 247, 0.4) 0%, transparent 100%);
  left: 0;
}

/* Remove the old rotated pseudo-element cards */
#content:after,
#content:before {
  display: none;
}

/* ======================================================================
   📝 Form Inputs
   ====================================================================== */

#content form {
  margin: 0 30px;
  position: relative;
}

#content form input[type="text"],
#content form input[type="password"] {
  border-radius: 12px;
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.04),
    inset 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f5f6fa;
  border: 1.5px solid #e0e3eb;
  color: #333;
  font: 14px 'Noto Kufi Arabic', Helvetica, Arial, sans-serif;
  margin: 0 0 14px;
  padding: 14px 16px 14px 44px;
  width: 100%;
  outline: none;
}

#content form input[type="text"]:focus,
#content form input[type="password"]:focus {
  box-shadow: 
    0 0 0 3px rgba(74, 108, 247, 0.12),
    inset 0 1px 2px rgba(0, 0, 0, 0.04);
  background-color: #fff;
  border-color: #4A6CF7;
}

#user { background-position: 10px 10px !important; }
#pass { background-position: 10px -53px !important; }

/* ======================================================================
   🔘 Submit Button
   ====================================================================== */

#content form input[type="submit"] {
  background: linear-gradient(135deg, #4A6CF7 0%, #6B8AFF 100%);
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(74, 108, 247, 0.3);
  border: none;
  color: #ffffff;
  cursor: pointer;
  float: none;
  font-family: 'Noto Kufi Arabic', spfont3n, sans-serif;
  font-weight: 600;
  height: 46px;
  margin: 20px auto 30px;
  display: block;
  position: relative;
  width: 180px;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
}

#content form input[type="submit"]:hover {
  background: linear-gradient(135deg, #3A56D4 0%, #4A6CF7 100%);
  box-shadow: 0 8px 24px rgba(74, 108, 247, 0.4);
  transform: translateY(-2px);
}

#content form input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(74, 108, 247, 0.2);
}

#content form div a {
  color: #4A6CF7;
  float: right;
  font-size: 12px;
  margin: 20px 15px 0 0;
  text-decoration: none;
  transition: all 0.3s ease;
}

#content form div a:hover {
  color: #3A56D4;
}

/* ======================================================================
   📌 Bottom Button Section
   ====================================================================== */

.button {
  background: linear-gradient(180deg, rgba(245, 246, 250, 0.8) 0%, rgba(235, 237, 245, 0.9) 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
  border-radius: 0 0 20px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 18px 0;
}

.button a {
  color: #5A6178;
  font-size: 15px;
  font-family: 'Noto Kufi Arabic', spfont3n, sans-serif;
  font-weight: 500;
  padding: 2px 0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.button a:hover {
  color: #4A6CF7;
}

/* ======================================================================
   🔔 Alert Messages
   ====================================================================== */

.alert {
  border-radius: 12px !important;
  border: none !important;
  padding: 12px 20px !important;
  font-family: 'Noto Kufi Arabic', sans-serif !important;
  font-size: 14px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin: 0 30px 15px !important;
}

.alert-danger {
  background: linear-gradient(135deg, #ffe0e6 0%, #ffd1d9 100%) !important;
  color: #9e2b3a !important;
}

/* ======================================================================
   📱 Responsive
   ====================================================================== */

/* ── Mobile (≤767px) ── */
@media (max-width: 767px) {
  .container {
    width: 95%;
    margin: 5% auto;
  }
  
  #content {
    width: 100%;
    padding: 24px 0 0;
    border-radius: 16px;
  }
  
  #content form {
    margin: 0 16px;
  }
  
  #content h1 {
    font-size: 20px;
    margin: 8px 0 20px;
  }
  
  #content h1:before,
  #content h1:after {
    width: 20%;
  }
  
  #content form input[type="text"],
  #content form input[type="password"] {
    padding: 12px 14px 12px 40px;
    font-size: 13px;
  }
  
  #content form input[type="submit"] {
    width: 160px;
    height: 42px;
    font-size: 14px;
    margin: 16px auto 24px;
  }
  
  .button {
    border-radius: 0 0 16px 16px;
    padding: 14px 0;
  }
  
  .button a {
    font-size: 13px;
  }
  
  .alert {
    margin: 0 16px 12px !important;
    font-size: 13px !important;
  }
}

/* ── Tablets (768px - 1024px) ── */
@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    width: 420px;
    margin: 8% auto;
  }
  
  #content {
    width: 400px;
  }
}

/* ── Landscape small devices ── */
@media (max-height: 500px) and (orientation: landscape) {
  .container {
    margin: 3% auto;
  }
  
  #content {
    padding: 20px 0 0;
  }
  
  #content h1 {
    margin: 5px 0 15px;
  }
  
  #content form input[type="submit"] {
    margin: 12px auto 20px;
  }
}