/* ==========================================================================
   Roshani Technologies – Restored Split Login Page + Uiverse Card
   Palette: Forest Green (#244C3A / #18382B), Warm Cream (#F6F0E4 / #FFFDF7), Terracotta (#C96B50)
   ========================================================================== */

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  grid-template-columns: 1.05fr 1fr;
  background: #18382B;
  color: #F6F0E4;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.4s ease;
}

.auth-screen.open {
  display: grid;
  animation: authFadeIn 0.35s ease both;
}

.auth-screen.out {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

@keyframes authFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-left {
  padding: clamp(28px, 6vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(60% 55% at 85% 90%, rgba(201, 107, 80, 0.24), transparent),
    linear-gradient(160deg, #18382B 0%, #244C3A 68%, #1C3E30 100%);
}

.auth-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/images/auth-arch-cad.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.26;
  mix-blend-mode: luminosity;
  pointer-events: none;
}

.auth-left > * {
  position: relative;
  z-index: 1;
}

.auth-left-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: #DF9278;
  margin: 0;
}

.auth-left h1 {
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 14ch;
  color: #FFFDF7;
}

.auth-left p {
  margin: 0;
  max-width: 42ch;
  color: rgba(246, 240, 228, 0.84);
  line-height: 1.6;
}

.auth-left-sw {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  background: linear-gradient(90deg, #18382B 20%, #244C3A 20% 40%, #F6F0E4 40% 60%, #C96B50 60% 80%, #DF9278 80%);
}

.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 44px);
  background: #F6F0E4;
  color: #292722;
}

.auth-card {
  width: min(100%, 410px);
  background: #FFFDF7;
  color: #292722;
  border: 1px solid rgba(41, 39, 34, 0.14);
  border-radius: 20px;
  padding: clamp(22px, 3.5vw, 30px);
  box-shadow: 0 20px 50px -24px rgba(24, 56, 43, 0.28);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--f, "Helvetica Neue", Arial, sans-serif);
}

.auth-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-back {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #244C3A;
  cursor: pointer;
}

.auth-back:hover {
  color: #C96B50;
  text-decoration: underline;
}

.auth-card-title {
  margin: 2px 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: #292722;
  letter-spacing: -0.02em;
}

.auth-card-sub {
  margin: 0 0 4px;
  font-size: 0.86rem;
  color: #716C62;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.auth-field-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #292722;
}

.auth-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1.5px solid rgba(41, 39, 34, 0.18);
  border-radius: 10px;
  background: #F6F0E4;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input-group:focus-within {
  border-color: #C96B50;
  background: #FFFDF7;
  box-shadow: 0 0 0 3px rgba(201, 107, 80, 0.14);
}

.auth-input-icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: #716C62;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-input-group:focus-within .auth-input-icon {
  color: #C96B50;
}

/* Reset global form input rules strictly inside auth-card */
.auth-card .auth-input-group input,
.auth-card .auth-input-group select {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  transform: none !important;
  background: transparent !important;
  color: #292722 !important;
  font-size: 0.92rem;
  font-family: inherit;
  min-height: 0 !important;
  border-radius: 0 !important;
}

.auth-card .auth-input-group input::placeholder {
  color: #716C62;
  opacity: 0.85;
}

.auth-card .auth-input-group input:-webkit-autofill,
.auth-card .auth-input-group input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px #FFFDF7 inset !important;
  -webkit-text-fill-color: #292722 !important;
  caret-color: #292722;
}

.auth-eye {
  flex: none;
  background: none;
  border: 0;
  color: #716C62;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
}

.auth-eye:hover {
  color: #C96B50;
}

.auth-flex-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #292722;
  cursor: pointer;
}

.auth-remember input {
  width: 16px !important;
  height: 16px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: #C96B50;
  cursor: pointer;
  transform: none !important;
  box-shadow: none !important;
}

.auth-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: #C96B50;
  cursor: pointer;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: #244C3A;
  text-decoration: underline;
}

.auth-submit {
  margin-top: 4px;
  background: linear-gradient(135deg, #18382B 0%, #244C3A 55%, #C96B50 100%);
  border: 0;
  color: #FFFDF7;
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: 10px;
  height: 46px;
  width: 100%;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, opacity 0.2s ease;
}

.auth-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -12px rgba(201, 107, 80, 0.55);
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-p {
  text-align: center;
  color: #716C62;
  font-size: 0.86rem;
  margin: 2px 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #716C62;
  font-size: 0.8rem;
}

.auth-divider:before,
.auth-divider:after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(41, 39, 34, 0.14);
}

.auth-social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-social-btn {
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #292722;
  background: #FFFDF7;
  border: 1.5px solid rgba(41, 39, 34, 0.16);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-social-btn:hover {
  border-color: #C96B50;
  box-shadow: 0 8px 18px -12px rgba(201, 107, 80, 0.45);
  transform: translateY(-1px);
}

.auth-error {
  color: #B42318;
  font-size: 0.84rem;
  min-height: 1em;
}

.auth-success {
  color: #18382B;
  background: rgba(36, 76, 58, 0.1);
  border: 1px solid rgba(36, 76, 58, 0.25);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.84rem;
}

@media (max-width: 860px) {
  .auth-screen.open {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .auth-left {
    padding: 26px 20px;
  }

  .auth-left h1 {
    font-size: 1.9rem;
  }
}
