/* Vazirmatn — must ship with login.css so wp-login.php has fonts without theme app.css */
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../../fonts/vazirmatn/Vazirmatn-Light.woff2") format("woff2");
}

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../fonts/vazirmatn/Vazirmatn-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../../fonts/vazirmatn/Vazirmatn-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../../fonts/vazirmatn/Vazirmatn-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../../fonts/vazirmatn/Vazirmatn-Bold.woff2") format("woff2");
}

html.admin-bar body.page-template-page-login,
html.admin-bar body.milimol-wp-login {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

html body.page-template-page-login,
html body.milimol-wp-login,
html body.login.milimol-wp-login {
  background: #eef3f6;
  margin: 0 !important;
  padding: 0 !important;
  font-family: "Vazirmatn", Tahoma, sans-serif !important;
  font-size: 15px;
  line-height: 1.7;
  color: #0c2e42;
  -webkit-font-smoothing: antialiased;
}

body.page-template-page-login *,
body.milimol-wp-login *,
body.login.milimol-wp-login * {
  font-family: inherit;
}

body.page-template-page-login #content,
body.page-template-page-login .content-wrapper,
body.page-template-page-login .wrapper,
body.milimol-wp-login #login {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
}

body.page-template-page-login .header,
body.page-template-page-login #footer,
body.page-template-page-login #wpadminbar,
body.milimol-wp-login #wpadminbar {
  display: none !important;
}

body.page-template-page-login .skip-link {
  display: none !important;
}

.auth-login {
  display: flex;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  direction: rtl;
}

.auth-login__visual,
.auth-login__panel {
  flex: 1 1 50%;
  min-height: 100vh;
}

.auth-login__visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: #0c2e42;
}

.auth-login__visual-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
}

.auth-login__visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 46, 66, 0.18) 0%, rgba(12, 46, 66, 0.42) 45%, rgba(12, 46, 66, 0.88) 100%);
}

.auth-login__visual-content {
  position: relative;
  z-index: 1;
  padding: 48px 56px 64px;
  max-width: 560px;
}

.auth-login__brand img {
  display: block;
  max-height: 48px;
  width: auto;
  margin-bottom: 28px;
}

.auth-login__brand span {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 22px;
  font-weight: 700;
}

.auth-login__visual-content h1 {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
}

.auth-login__visual-content p,
.auth-login__visual-content li {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
}

.auth-login__visual-content ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.auth-login__visual-content li {
  position: relative;
  padding-right: 18px;
  margin-bottom: 8px;
}

.auth-login__visual-content li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7fd3ef;
}

.auth-login__panel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #eef3f6;
  padding: 48px 24px 56px;
  box-sizing: border-box;
}

.auth-login__panel-inner {
  width: 100%;
  max-width: 440px;
  margin-top: 24px;
  padding: 36px 32px 32px;
  background: #fff;
  border: 1px solid #d9e4eb;
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(12, 46, 66, 0.1);
  box-sizing: border-box;
}

.auth-login__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  color: #146588;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.auth-login__back:hover {
  color: #0c2e42;
}

.auth-login__panel-inner h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  color: #0c2e42;
}

.auth-login__lead {
  margin: 0 0 22px;
  color: #5b6b75;
  font-size: 14px;
}

.auth-login__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 24px;
  padding: 5px;
  border: 1px solid #e2ebf0;
  border-radius: 14px;
  background: #f4f8fa;
}

.auth-login__tabs button {
  border: 0;
  border-radius: 10px;
  padding: 11px 12px;
  background: transparent;
  color: #5b6b75;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.auth-login__tabs button.is-active {
  background: #fff;
  color: #146588;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(12, 46, 66, 0.1);
}

.auth-login__form {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
  width: 100%;
  gap: 0;
}

.auth-login__form label,
.auth-login__form .auth-login__lost {
  display: block !important;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
  color: #0c2e42;
  font-size: 14px;
  font-weight: 500;
}

.auth-login__form input[type="text"],
.auth-login__form input[type="password"],
.auth-login__form input[type="tel"] {
  display: block !important;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 16px;
  padding: 13px 14px;
  border: 1px solid #cfdce5;
  border-radius: 12px;
  background: #fbfcfd;
  color: #0c2e42;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-login__form input::placeholder {
  color: #93a4af;
}

.auth-login__form input:focus {
  outline: 0;
  border-color: #146588;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 101, 136, 0.14);
}

.auth-login__remember {
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 18px;
  color: #5b6b75;
  font-size: 14px;
  font-weight: 400;
}

.auth-login__remember input {
  width: auto !important;
  margin: 0;
  flex-shrink: 0;
  accent-color: #146588;
}

.auth-login__form button[type="submit"],
.auth-login__form button[name="login"] {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box;
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  background: linear-gradient(180deg, #18749b 0%, #146588 100%);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(20, 101, 136, 0.22);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.auth-login__form button[type="submit"]:hover,
.auth-login__form button[name="login"]:hover {
  filter: brightness(1.04);
  box-shadow: 0 10px 22px rgba(20, 101, 136, 0.28);
}

.auth-login__form button[type="submit"]:disabled,
.auth-login__form button[name="login"]:disabled {
  opacity: 0.65;
  cursor: wait;
  box-shadow: none;
}

.auth-login__ghost {
  width: 100%;
  margin-top: 10px;
  border: 1px solid #cfdce5;
  border-radius: 12px;
  padding: 11px 16px;
  background: #fff;
  color: #146588;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.auth-login__ghost:disabled {
  color: #8a9aa4;
  cursor: not-allowed;
}

.auth-login__lost,
.auth-login__signup a {
  color: #146588;
  text-decoration: none;
  font-weight: 500;
}

.auth-login__lost:hover,
.auth-login__signup a:hover {
  text-decoration: underline;
}

.auth-login__lost {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
}

.auth-login__status {
  min-height: 24px;
  margin-top: 12px;
  font-size: 14px;
}

.auth-login__status.is-error {
  color: #b42318;
}

.auth-login__status.is-success {
  color: #027a48;
}

.auth-login__signup {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e7eef2;
  text-align: center;
  color: #5b6b75;
  font-size: 14px;
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info,
.auth-login__notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  list-style: none;
  font-size: 14px;
}

.woocommerce-error,
.auth-login__notice.is-error {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
}

.woocommerce-message,
.auth-login__notice.is-success {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #027a48;
}

.woocommerce-info {
  background: #f0f7fb;
  border: 1px solid #c7dff0;
  color: #146588;
}

@media (max-width: 899px) {
  .auth-login {
    flex-direction: column;
  }

  .auth-login__visual,
  .auth-login__panel {
    min-height: auto;
    flex-basis: auto;
  }

  .auth-login__visual {
    min-height: 260px;
  }

  .auth-login__visual-content {
    padding: 32px 24px;
  }

  .auth-login__visual-content h1 {
    font-size: 24px;
  }

  .auth-login__panel {
    padding: 20px 16px 40px;
  }

  .auth-login__panel-inner {
    margin-top: 0;
    padding: 28px 20px 24px;
  }
}
