:root {
  --orange:      #f58220;
  --orange-dark: #d96a0c;
  --orange-deep: #b8560a;
  --text:  #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --muted-soft: rgba(255, 255, 255, 0.55);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Force all form controls to inherit the Inter stack */
input, button, select, textarea, optgroup, option {
  font-family: inherit;
  font-feature-settings: inherit;
  font-optical-sizing: inherit;
}

html, body {
  height: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background-color: #0f0a07;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "ss01" 1, "cv11" 1;
  font-optical-sizing: auto;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 88% 110%, rgba(245, 130, 32, 0.32), transparent 60%),
    linear-gradient(120deg, rgba(10,10,15,0.55) 0%, rgba(20,20,30,0.25) 55%, rgba(10,10,15,0.35) 100%),
    url("../login_page_bg.jpg") left center/cover no-repeat;
  background-color: #0f0a07;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  animation: fadeIn 0.55s var(--ease-spring) both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.screen-label {
  position: fixed;
  top: 24px;
  left: 30px;
  font-size: 10.5px;
  letter-spacing: 2px;
  color: var(--muted-soft);
  text-transform: uppercase;
  font-weight: 600;
}

.screen-label::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--muted-soft);
  vertical-align: middle;
  margin-right: 10px;
}

/* ---------- Card ---------- */
.card {
  width: min(1000px, 100%);
  min-height: 580px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  box-shadow:
    0 50px 100px -24px rgba(0, 0, 0, 0.65),
    0 0 0 0.5px rgba(255, 255, 255, 0.06) inset;
  animation: cardRise 0.8s var(--ease-spring) both;
}

@keyframes cardRise {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.brand {
  padding: 52px 46px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  background: linear-gradient(115deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.05) 100%);
  position: relative;
}

.brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 200px at 10% 0%, rgba(245, 130, 32, 0.16), transparent 60%);
  pointer-events: none;
}

.logos {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
}

.logos img {
  height: 56px;
  width: auto;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.brand h1 {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.8px;
  position: relative;
}

.brand h1 span {
  background: linear-gradient(90deg, #ffb15c 0%, #f58220 50%, #ff7a15 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 380px;
  position: relative;
  letter-spacing: -0.1px;
}

.brand .tagline {
  font-size: 10.5px;
  color: var(--muted-soft);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
}

.brand .tagline.accent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand .tagline.accent::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.24);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1;   transform: scale(1);    }
  50%      { opacity: 0.4; transform: scale(0.85); }
}

/* ---------- Form panel ---------- */
.form-panel {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(155deg, #f8a050 0%, var(--orange) 35%, var(--orange-dark) 100%);
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.form-panel::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, transparent 70%);
  pointer-events: none;
}

.form-panel h2 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #ffffff;
  letter-spacing: -1px;
  position: relative;
  line-height: 1.1;
}

.form-panel h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: #ffffff;
  border-radius: 4px;
  margin-top: 14px;
  opacity: 0.85;
}

.form-panel .subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 26px;
  margin-top: 8px;
  position: relative;
  letter-spacing: -0.1px;
}

.form-panel form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
}

.field input {
  width: 100%;
  padding: 16px 18px 16px 46px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: #1d1d1f;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: box-shadow 0.3s var(--ease-spring), transform 0.3s var(--ease-spring);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  letter-spacing: -0.1px;
}

.field input:hover { transform: translateY(-1px); }

.field input:focus {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35), 0 8px 20px rgba(0, 0, 0, 0.15);
}

.field input::placeholder { color: #9b9b9b; }

.field .icon {
  position: absolute;
  left: 17px;
  width: 18px;
  height: 18px;
  color: var(--orange-dark);
  pointer-events: none;
  opacity: 0.82;
}

.submit-btn {
  margin-top: 14px;
  padding: 16px 16px;
  border: none;
  border-radius: 12px;
  background: #ffffff;
  color: var(--orange-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  font-family: inherit;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(245, 130, 32, 0.22) 50%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.submit-btn:hover::before {
  animation: sheen 0.9s ease;
}

@keyframes sheen {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(180%);  }
}

.submit-btn:active { transform: translateY(0); }

.alt-link {
  margin-top: 24px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  letter-spacing: -0.1px;
}

.alt-link b { color: #ffffff; font-weight: 700; }

.alt-link a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

.error-msg {
  min-height: 20px;
  margin-top: 6px;
  text-align: center;
  font-size: 13px;
  color: #fff3cd;
  font-weight: 600;
  letter-spacing: -0.1px;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .card { grid-template-columns: 1fr; }
  .brand { padding: 36px; gap: 24px; }
  .form-panel { padding: 40px 30px; }
  .brand h1 { font-size: 26px; }
  .form-panel h2 { font-size: 30px; }
}
