/* Oregano ERP - Login page styles */

/* ---- Override base styles ---- */

html, body {
  background-color: #ffffff !important;
  background-image: none !important;
  overflow-x: hidden;
  overflow-y: hidden;
  margin: 0 !important;
  padding: 0 !important;
}

body.auth-page {
  background-color: #ffffff !important;
  background: #ffffff !important;
  background-image: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  height: 100vh !important;
  max-height: 100vh !important;
}

body.auth-page main {
  margin: 0 !important;
  padding: 0 !important;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  display: block !important;
}

body.auth-page main.auth-shell {
  padding: 0 !important;
  margin: 0 !important;
}

/* ---- Login card ---- */

.auth-card {
  background: #fff;
  box-shadow: inset 0 0 0 0.2px var(--oregano-border), 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 30px 60px 60px;
  width: 100%;
  min-width: 400px;
  border: 1px solid var(--oregano-olive);
  color: #000;
}

.auth-card__heading {
  font-size: 18px;
  font-weight: normal;
  color: #000;
  margin: 0 0 32px 0;
  text-align: center;
  font-family: 'Forum', 'Times New Roman', serif;
  letter-spacing: 1px;
}

.auth-card .form-control {
  border: 1px solid var(--oregano-olive);
  border-radius: 0;
}

.auth-card .form-control::placeholder {
  color: #999;
  opacity: 0.7;
}

.auth-card #login-submit-btn {
  margin-top: 16px;
  background-color: #877555;
  border-color: #877555;
}

.auth-card #login-submit-btn:hover {
  background-color: #6b5d43 !important;
  border-color: #6b5d43 !important;
}

.auth-card .alert-danger {
  padding: 8px 12px;
  font-size: 13px;
  background: transparent;
  border: none;
  color: #dc3545;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.6em;
  line-height: 1.3em;
}

/* ---- Two-column login layout ---- */

.auth-login-layout {
  display: flex;
  align-items: stretch;
  height: 100vh;
  max-height: 100vh;
  gap: 0;
  padding: 0;
  position: relative;
  margin: 0;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
}

/* ---- Left side: Logo and heading ---- */

.auth-login__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40%;
  height: 100vh;
  z-index: 1;
  padding: 0 60px;
  box-sizing: border-box;
  position: relative;
  background: #ffffff;
}

.auth-login__logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: left;
}

.auth-login__logo-img {
  height: 180px;
  width: auto;
}

.auth-login__heading {
  font-size: 42px;
  font-weight: 500;
  color: #000;
  margin: 0;
  line-height: 1.3;
  font-family: 'Forum', 'Times New Roman', serif;
  letter-spacing: 2px;
}

/* ---- Right side: Login card ---- */

.auth-login__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 60%;
  height: 100vh;
  z-index: 1;
  padding: 0 60px;
  box-sizing: border-box;
  position: relative;
  background: var(--oregano-maroon);
}

/* ---- Input labels and icons ---- */

.auth-login__eye-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
  border: none;
  background: transparent;
  color: var(--oregano-olive);
  cursor: pointer;
  z-index: 5;
}

.auth-login__eye-icon:hover {
  color: var(--oregano-maroon);
}

.auth-input__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  margin-bottom: 12px;
  font-family: 'Forum', 'Times New Roman', serif;
}

/* ---- Auth page background ---- */

body.auth-page .app-topbar {
  display: none;
}

/* Override auth-shell cream background */
body.auth-page main.auth-shell {
  background: #ffffff !important;
}

/* ---- Responsive for mobile ---- */

@media (max-width: 991.98px) {
  .auth-login-layout {
    flex-direction: column;
    gap: 24px;
    padding: 30px 20px;
    min-height: auto;
    position: relative;
  }

  .auth-login__left {
    width: 100%;
    padding: 0;
  }

  .auth-login__logo-img {
    height: 80px;
  }

  .auth-login__heading {
    font-size: 24px;
  }

  .auth-login__right {
    width: 100%;
    max-width: 400px;
    padding: 0;
  }

  .auth-card {
    min-width: auto;
    max-width: 400px;
    padding: 20px 16px;
    width: 100%;
  }
}
