@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&display=swap');

:root {
  --gold: #ad7a30;
  --text: #535353;
  --black: #050505;
  --border: #dcdcdc;
  --button: #9d968f;
}

* { box-sizing: border-box; }

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

body {
  font-family: Cairo, Tahoma, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

.login-12 {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 41.6% 58.4%;
  direction: ltr;
  overflow: hidden;
}

.form-info {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 15px 30px;
  position: relative;
  background:
    linear-gradient(135deg, rgba(0,0,0,.022) 25%, transparent 25%) 0 0 / 44px 44px,
    linear-gradient(225deg, rgba(0,0,0,.016) 25%, transparent 25%) 0 0 / 44px 44px,
    #f7f7f7;
}

.form-section {
  width: 370px;
  max-width: 100%;
  text-align: center;
}

.logo img {
  width: 100px;
  height: 125px;
  object-fit: contain;
  margin-bottom: 24px;
}

.login-inner-form h3 {
  margin: 0 0 38px;
  color: var(--black);
  font-size: 30px;
  line-height: 1.35;
  font-weight: 500;
}

.form-group { margin-bottom: 29px; }

.form-box {
  position: relative;
  width: 100%;
}

.form-control {
  width: 100%;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: #fff;
  box-shadow: 0 0 3px rgba(0,0,0,.2);
  outline: none;
  padding: 10px 45px 10px 52px;
  color: var(--text);
  font: 500 16px Cairo, Tahoma, Arial, sans-serif;
  text-align: right;
  direction: rtl;
}

.form-control::placeholder {
  color: #909090;
  opacity: .78;
}

.field-icon {
  position: absolute;
  top: 13px;
  left: 20px;
  width: 18px;
  height: 18px;
  color: #535353;
}

button.field-icon {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.password-toggle .icon-eye {
  display: none;
}

.password-toggle.is-visible .icon-eye-off {
  display: none;
}

.password-toggle.is-visible .icon-eye {
  display: block;
}

.field-icon svg,
.btn-theme svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.forgot-row {
  height: 42px;
  line-height: 42px;
  text-align: right;
  margin-top: -3px;
  margin-bottom: 0;
}

.forgot-row a,
.register-text a,
.home-link a {
  color: var(--gold);
  text-decoration: none;
  font-size: 16px;
}

.btn-theme {
  width: 160px;
  height: 41px;
  border: 0;
  border-radius: 50px;
  background: var(--button);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: 500 15px Cairo, Tahoma, Arial, sans-serif;
  cursor: default;
  box-shadow: none;
}

.btn-theme svg {
  width: 19px;
  height: 19px;
}

.login-message {
  min-height: 24px;
  margin: -2px 0 14px;
  color: #b21f1f;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.login-message:empty {
  display: none;
}

.register-text {
  margin: 30px 0 0;
  color: var(--text);
  font-size: 16px;
}

.home-link {
  margin: 33px 0 0;
  font-size: 16px;
}

.bg-img {
  min-height: 100vh;
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #d8c2a0;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 50%;
  z-index: 0;
}

.bg-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(219,161,74,.08);
  z-index: 1;
  pointer-events: none;
}

.header-container {
  position: absolute;
  right: 0;
  top: 37.3%;
  z-index: 2;
  width: 82.8%;
  min-height: 168px;
  padding: 25px 31px !important;
  background-color: rgba(33,34,38,.5);
  text-align: right;
  direction: rtl;
}

.header-container h2,
.header-container h3 {
  margin: 0;
  color: #fff;
  line-height: 1.35;
}

.header-container h2 {
  font-size: 38px;
  font-weight: 600;
  margin-bottom: 24px;
}

.header-container h3 {
  font-size: 30px;
  font-weight: 500;
}

@media (max-width: 992px) {
  .login-12 {
    display: block;
    min-height: 100vh;
  }

  .bg-img { display: none; }

  .form-info {
    min-height: 100vh;
    padding: 76px 15px 30px;
  }

  .form-section {
    width: min(100%, 430px);
  }

  .login-inner-form h3 {
    font-size: 30px;
    margin-bottom: 40px;
  }

  .btn-theme {
    width: 158px;
    height: 41px;
    border-radius: 13px;
    background: #aaa49d;
  }

  .register-text { margin-top: 31px; }

  .home-link { margin-top: 58px; }
}

@media (max-width: 430px) {
  .form-info { padding-top: 76px; }

  .login-inner-form h3 {
    font-size: 25px;
    margin-bottom: 34px;
  }

  .form-group { margin-bottom: 23px; }

  .form-control { height: 50px; }

  .field-icon { top: 15px; }

  .forgot-row { margin-top: -5px; }
}
