/* House of Orion login — split carousel + form */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

body.login-page {
  font-family: "Roboto", sans-serif;
  background: #fff;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  touch-action: manipulation;
}

/* ===== LEFT IMAGE PANEL ===== */

.login-left {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
  display: none;
}

@media (min-width: 576px) {
  .login-left {
    display: block;
  }
}

.carousel {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0.5vw;
  border-radius: 50px;
}

.slide-text {
  position: absolute;
  bottom: 2vw;
  padding-left: 3vw;
  padding-right: 14vw;
  z-index: 1;
  pointer-events: none;
}

.slide-text h2 {
  font-family: "Noto Serif", serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 4.69vw, 3.5rem);
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.slide-text p {
  font-size: clamp(0.8125rem, 1vw, 1rem);
  color: #fff;
  padding-right: 9vw;
  margin-top: 0.5rem;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* ===== RIGHT FORM PANEL ===== */

.login-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 68px 100px;
  background: #fff;
  justify-content: space-between;
  min-height: 100vh;
  min-height: 100dvh;
}

@media (max-width: 991px) {
  .login-right {
    padding: 68px 50px;
  }
}

@media (max-width: 575px) {
  .login-right {
    padding: 20px 24px;
    min-height: 100vh;
    min-height: 100dvh;
  }
}

.login-wrapper {
  width: 393px;
  max-width: 100%;
  padding: 24px 0;
  margin: auto 0;
}

@media (max-width: 575px) {
  .login-wrapper {
    width: 100%;
  }
}

.login-wrapper .logo {
  width: auto;
  max-width: 220px;
  max-height: 70px;
  height: auto;
  display: block;
  object-fit: contain;
}

.login-brand-text {
  font-family: "Noto Serif", serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #1a2f4a;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.login-brand-text span {
  display: block;
  font-size: 0.55em;
  font-weight: 400;
  color: #c4953a;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}

.login-title {
  font-size: 30px;
  font-weight: 500;
  color: #000;
  margin-top: 40px;
  margin-bottom: 4px;
  padding-top: env(safe-area-inset-top, 0);
}

.login-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: #555;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.input-wrap {
  position: relative;
}

.input-wrap i.field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 14px;
  pointer-events: none;
}

.form-control {
  width: 100%;
  border: 1px solid #d4d0da;
  border-radius: 12px;
  padding: 12px 14px 12px 40px;
  font-size: 16px;
  color: #000;
  background: #fff;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus {
  border-color: #c4953a;
  box-shadow: 0 0 0 3px rgba(196, 149, 58, 0.15);
}

.form-control::placeholder {
  color: #aaa;
  font-weight: 300;
}

.toggle-pass {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #aaa;
  font-size: 14px;
  background: none;
  border: none;
  padding: 0;
}

.login-btn {
  width: 100%;
  padding: 13px;
  background: #1a2f4a;
  border: 1px solid #1a2f4a;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-btn:hover {
  background: #fff;
  color: #1a2f4a;
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-btn.is-loading {
  pointer-events: none;
}

/* Alert */

.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
  animation: slideDown 0.3s ease;
}

.alert-error {
  background: rgba(210, 15, 50, 0.08);
  border: 1px solid #d20f32;
  color: #d20f32;
}

.alert-success {
  background: rgba(0, 180, 100, 0.08);
  border: 1px solid #00b464;
  color: #00b464;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer links */

.login-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  list-style: none;
  padding: 0;
  margin-top: 32px;
}

.login-footer li a {
  color: #757575;
  font-size: 12px;
  text-decoration: none;
  padding: 0 14px;
  border-right: 1px solid #ddd;
}

.login-footer li:last-child a {
  border-right: none;
}

.login-footer li:first-child a {
  padding-left: 0;
}

.login-footer li a:hover {
  color: #c4953a;
}

@media (max-width: 575px) {
  .login-title {
    font-size: 26px;
    margin-top: 28px;
  }

  .login-footer li a {
    padding: 8px 10px;
    font-size: 12px;
  }

  .slide img {
    border-radius: 24px;
    padding: 8px;
  }

  .slide-text {
    bottom: 24px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .slide-text p {
    padding-right: 0;
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .login-left {
    flex: 0 0 45%;
  }

  .slide img {
    border-radius: 32px;
  }

  .slide-text {
    padding-right: 6vw;
  }

  .slide-text p {
    padding-right: 0;
  }
}

@media (min-width: 992px) {
  .login-left {
    flex: 0 0 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide {
    transition: none;
  }

  .alert {
    animation: none;
  }
}
