:root {
  --navy: #082465;
  --navy-dark: #05183f;
  --navy-soft: #0a2a6b;
  --yellow: #fec913;
  --white: #ffffff;
  --text: #48494a;
  --text-light: #7a7b7d;
  --shadow: 0 25px 60px -20px rgba(5, 24, 63, 0.6);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Cairo", sans-serif;
  color: var(--text);
  direction: rtl;
}

/* ======= Login page ======= */
.login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-soft) 100%);
  overflow: hidden;
  padding: 60px 0;
}

.login-shape {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 201, 19, 0.18), transparent 70%);
  animation: float 7s ease-in-out infinite;
}

.login-shape-1 {
  width: 420px;
  height: 420px;
  top: -140px;
  inset-inline-end: -120px;
}

.login-shape-2 {
  width: 280px;
  height: 280px;
  bottom: 40px;
  inset-inline-start: -90px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
  animation-delay: 1.5s;
}

.login-shape-3 {
  width: 160px;
  height: 160px;
  top: 55%;
  inset-inline-end: 22%;
  background: radial-gradient(circle, rgba(254, 201, 19, 0.12), transparent 70%);
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-22px) scale(1.06); }
}

.login-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.login-card {
  background: var(--white);
  border-radius: 26px;
  padding: 44px 38px;
  box-shadow: var(--shadow);
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 26px;
}

.login-logo img {
  width: 36px;
}

.login-logo span {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
}

.login-card h1 {
  text-align: center;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.login-sub {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* ======= Form fields ======= */
.form-field {
  position: relative;
  margin-bottom: 16px;
}

.form-field > i {
  position: absolute;
  top: 50%;
  inset-inline-start: 16px;
  transform: translateY(-50%);
  color: var(--navy);
  opacity: 0.55;
  font-size: 16px;
  pointer-events: none;
}

.form-field input {
  width: 100%;
  border: 2px solid #edf0f8;
  background: var(--gray-bg, #f6f8fd);
  border-radius: 14px;
  padding: 13px 46px 13px 16px;
  font-family: "Cairo", sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: all 0.3s ease;
}

.form-field input::placeholder {
  color: #a5a8ad;
}

.form-field input:focus {
  border-color: var(--yellow);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(254, 201, 19, 0.2);
}

.form-field .pass-toggle {
  position: absolute;
  top: 50%;
  inset-inline-end: 14px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 16px;
  padding: 4px;
  cursor: pointer;
}

.form-field .pass-toggle:hover {
  color: var(--navy);
}

.form-check-input:checked {
  background-color: var(--navy);
  border-color: var(--navy);
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(8, 36, 101, 0.15);
}

.form-check-label {
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
}

.forgot-link {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.forgot-link:hover {
  color: #e0a800;
}

.btn-login {
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 20px;
  border-radius: 50px;
  border: 2px solid var(--yellow);
  transition: all 0.3s ease;
}

.btn-login:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px -12px rgba(254, 201, 19, 0.9);
}

.btn-login:hover,
.btn-login:focus-visible,
.btn-login:active {
  background-color: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy);
}

/* ======= Divider ======= */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 20px;
  color: var(--text-light);
  font-size: 0.85rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #edf0f8;
}

.register-text {
  text-align: center;
  color: var(--text-light);
  margin: 0;
  font-size: 0.95rem;
}

.register-text a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.register-text a:hover {
  color: #e0a800;
}

/* ======= Wave ======= */
.login-wave {
  position: absolute;
  bottom: -1px;
  inset-inline: 0;
  line-height: 0;
  z-index: 1;
}

.login-wave svg {
  width: 100%;
  height: 70px;
  display: block;
}

.login-wave path {
  fill: var(--white);
  opacity: 0.06;
}

/* ======= Responsive ======= */
@media (max-width: 575.98px) {
  .login-page {
    padding: 40px 14px;
  }

  .login-card {
    padding: 34px 22px;
  }

  .login-card h1 {
    font-size: 1.5rem;
  }
}
.w2-logo {
    background: transparent !important;
    width: auto;
    height: auto;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    flex-shrink: 0;
    direction: rtl;
}

    .w2-logo img {
        background: transparent;
        width: 52px;
        height: auto;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
        flex-shrink: 0;
    }

    

.brand-slogan {
    font-size: 11px;
    font-weight: 300;
    color: #8b6b3f;
    white-space: nowrap;
    margin-top: 5px;
}}