:root {
  --main-red: #7a0c0c;
  --accent-red: #b62b46;
  --text-dark: #383838;
  --soft-bg: #ececec;
  --input-bg: rgba(255, 223, 229, 0.44);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--soft-bg);
  color: var(--text-dark);
  font-family: "Tajawal", "Cairo", sans-serif;
}

.top-bar {
  align-items: center;
  background: linear-gradient(180deg, var(--main-red), var(--accent-red));
  border-bottom: 2px solid #9f8f8f;
  display: flex;
  height: 36px;
  justify-content: flex-start;
  padding: 4px 12px;
}

.top-logo {
  height: 24px;
  object-fit: contain;
  width: 30px;
}

.page-content {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 226px);
  padding: 28px 20px 32px;
}

.login-panel {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(860px, 100%);
}

.brand-logo {
  height: auto;
  width: clamp(140px, 24vw, 250px);
}

.welcome-text {
  font-family: "Cairo", sans-serif;
  font-size: clamp(24px, 2.7vw, 46px);
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
  max-width: 900px;
  text-align: center;
}

.login-title {
  color: var(--main-red);
  font-family: "Cairo", sans-serif;
  font-size: clamp(26px, 2.2vw, 34px);
  margin: 0;
}

.form-shell {
  border: 2px solid #b85c5c;
  margin-top: 12px;
  padding: 24px 24px 34px;
  width: min(900px, 100%);
}

.field {
  align-items: center;
  background: var(--input-bg);
  border-radius: 10px;
  display: flex;
  gap: 10px;
  height: 56px;
  margin-bottom: 20px;
  padding: 0 14px;
}

.field input {
  background: transparent;
  border: 0;
  color: #777;
  flex: 1;
  font-family: "Cairo", sans-serif;
  font-size: clamp(18px, 1.6vw, 32px);
  outline: none;
  text-align: right;
}

.field input::placeholder {
  color: #9b9090;
}

.field-icon {
  height: 28px;
  object-fit: contain;
  width: 28px;
}

.eye {
  color: #b08686;
  font-size: 16px;
  transform: scaleX(-1);
}

.divider {
  align-items: center;
  display: flex;
  gap: 18px;
  margin: 8px 0 16px;
}

.divider span {
  border-top: 2px solid #ae4a4a;
  flex: 1;
}

.divider em {
  color: var(--main-red);
  font-family: "Cairo", sans-serif;
  font-size: clamp(20px, 1.5vw, 28px);
  font-style: normal;
  font-weight: 600;
}

.social-login {
  align-items: center;
  display: flex;
  gap: clamp(24px, 4vw, 44px);
  justify-content: center;
  margin-bottom: 8px;
}

.social-login img {
  filter: grayscale(1) saturate(0.7);
  height: 36px;
  object-fit: contain;
}

.submit-btn {
  background: linear-gradient(180deg, var(--main-red), var(--accent-red));
  border: 0;
  border-radius: 32px;
  color: #fff;
  cursor: pointer;
  font-family: "Cairo", sans-serif;
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 700;
  margin-top: -14px;
  min-width: 170px;
  padding: 8px 28px;
}

.site-footer {
  align-items: center;
  background: linear-gradient(180deg, var(--main-red), var(--accent-red));
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 190px;
  justify-content: center;
  padding: 26px 16px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.footer-socials img {
  height: 21px;
  object-fit: contain;
  width: 21px;
}

.copyright {
  color: rgba(214, 211, 209, 0.8);
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  margin: 0;
  text-align: center;
}

@media (max-width: 900px) {
  .page-content {
    min-height: calc(100vh - 216px);
    padding: 22px 14px 26px;
  }

  .form-shell {
    padding: 18px 14px 28px;
  }

  .field {
    height: 50px;
    margin-bottom: 14px;
  }

  .social-login img {
    height: 30px;
  }

  .submit-btn {
    margin-top: -10px;
    min-width: 140px;
  }
}

.form-shell {
  display: flex;
  flex-direction: column;
}

.submit-btn {
  margin-top: 25px;   /* مسافة من فوق */
  align-self: center; /* يخليه في النص */
  width: 40%;         /* اختياري - يخليه شبه القديم */
}
.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  width: 100%;
  padding-left: 40px; /* عشان الأيقونة */
}

.toggle-password {
  position: absolute;
  left: 10px;
  cursor: pointer;
  color: #666;
  font-size: 16px;
}

.register-link {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
}

.register-link a {
  color: #00AEEF; /* أو اللون الأساسي عندك */
  font-weight: bold;
  text-decoration: none;
}

.register-link a:hover {
  text-decoration: underline;
}