:root{
  --bg1:#0b132b;
  --bg2:#0e173a;
  --gold:#d4af37;
  --gold-soft:rgba(212,175,55,.6);
  --text:#f1f1f1;
  --muted:#b8bdd9;
  --input:#121a3a;
}

*{
  box-sizing:border-box;
  font-family:"Cairo",sans-serif;
}

body{
  margin:0;
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  background:linear-gradient(135deg,var(--bg1),var(--bg2));
}

/* ===== Card ===== */
.card{
  position:relative;
  width:90%;
  max-width:1100px;
  display:flex;
  border-radius:22px;
  background:linear-gradient(
    90deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.035),
    rgba(255,255,255,0.06)
  );
  backdrop-filter:blur(14px);
  overflow:hidden;
}

/* light sweep */
.card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    120deg,
    transparent 25%,
    rgba(212,175,55,0.12),
    transparent 75%
  );
  animation:sweep 7s linear infinite;
  pointer-events:none;
}

@keyframes sweep{
  from{transform:translateX(-100%);}
  to{transform:translateX(100%);}
}

.form,.brand{
  flex:1;
  padding:50px;
  position:relative;
  z-index:1;
}

/* ===== Form ===== */
h1{
  color:var(--gold);
  margin-bottom:10px;
}

p{
  color:var(--muted);
  margin-bottom:35px;
}

.field{
  margin-bottom:22px;
}

label{
  display:block;
  margin-bottom:6px;
  color:var(--text);
  font-size:14px;
}

input{
  width:100%;
  padding:14px;
  border:none;
  border-radius:12px;
  background:var(--input);
  color:var(--text);
  outline:none;
}

button{
  width:100%;
  padding:15px;
  border:none;
  border-radius:14px;
  background:linear-gradient(135deg,var(--gold),#f3d57c);
  font-weight:700;
  cursor:pointer;
}

/* ===== switch (مهم: مش هيبوّظ التصميم) ===== */
.switch{
  margin-top:28px;              /* مسافة محسوبة */
  text-align:center;
  font-size:14px;
  color:var(--muted);
}

.switch a{
  color:var(--gold);
  text-decoration:none;
  font-weight:600;
}

/* ===== Brand ===== */
.brand{
  display:flex;
  justify-content:center;
  align-items:center;
}

.brand img{
  max-width:70%;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.about-link-header {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  position: relative;
}

.about-link-header:hover {
  transform: scale(1.1);
}

.about-link-header:hover img {
  opacity: 0.9;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.6));
}

.about-link-header::after {
  content: "من نحن";
  position: absolute;
  bottom: -25px;
  right: 50%;
  transform: translateX(50%);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
}

.about-link-header:hover::after {
  opacity: 1;
}

/* ===== About Page Button (Visible on all devices) ===== */
.about-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  margin-bottom: 25px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.08));
  border: 2px solid var(--gold);
  border-radius: 50px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 200px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.about-page-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold), rgba(243, 213, 124, 0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-page-btn:hover::before {
  opacity: 0.2;
}

.about-page-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
  border-color: var(--gold);
  color: var(--gold);
}

.about-page-btn:active {
  transform: translateY(0);
}

.about-page-btn span:first-child {
  font-size: 18px;
  position: relative;
  z-index: 1;
}

.about-page-btn span:last-child {
  position: relative;
  z-index: 1;
}

/* ===== Responsive ===== */
@media(max-width:768px){
  .card{flex-direction:column;}
  
  .about-page-btn {
    max-width: 100%;
    padding: 14px 24px;
    font-size: 16px;
  }
  
  .about-link-header::after {
    display: none; /* إخفاء النص على الموبايل لأن الزر واضح */
  }
}

@media(max-width:480px){
  .about-page-btn {
    padding: 12px 20px;
    font-size: 15px;
  }
  
  .about-page-btn span:first-child {
    font-size: 16px;
  }
}

/* ===== Toast Notification (auth pages) ===== */
.toast{
  position:fixed;
  bottom:30px;
  right:30px;
  background:#2d3748;
  color:#fff;
  padding:16px 24px;
  border-radius:12px;
  box-shadow:0 8px 32px rgba(0,0,0,.3);
  display:none;
  align-items:center;
  gap:12px;
  z-index:10000;
  min-width:260px;
  max-width:380px;
  animation:toastSlideIn .3s ease;
}

.toast.show{
  display:flex;
}

.toast.error{
  background:#e53e3e;
}

.toast.success{
  background:#38a169;
}

.toast.warning{
  background:#dd6b20;
}

.toast .toast-icon{
  font-size:20px;
}

.toast .toast-message{
  flex:1;
  font-size:14px;
}

@keyframes toastSlideIn{
  from{
    opacity:0;
    transform:translateX(100%);
  }
  to{
    opacity:1;
    transform:translateX(0);
  }
}