/* PixWed Login Page Styles — Royal Gold & Amber Luxury Edition */
.login-page {
  background: #f8fafc;
  color: #1e293b;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* Left Story Column — Regal Royal Gold Gradient */
.login-story {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(254, 240, 138, 0.45) 0%, transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(217, 119, 6, 0.35) 0%, transparent 50%),
              linear-gradient(135deg, #b45309 0%, #d97706 40%, #f59e0b 80%, #fbbf24 100%);
  color: #ffffff;
  padding: 64px;
  display: flex;
  align-items: center;
}

.login-story-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
}

/* Brand badge in login story — Prominent, Big & Crisp PixWed Logo */
.login-story .brand,
.login-story .pixwed-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 16px !important;
  background: #ffffff !important;
  padding: 12px 26px 12px 14px !important;
  border-radius: 22px !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18), 0 3px 8px rgba(0, 0, 0, 0.08) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  width: fit-content !important;
  margin-bottom: 8px !important;
}

.login-story .brand:hover,
.login-story .pixwed-brand:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24) !important;
}

.login-story .brand img:first-child,
.login-story .pixwed-brand .pixwed-brand-icon,
.login-reference-logo img {
  height: 56px !important;
  width: 56px !important;
  border: 0 !important;
  border-radius: 15px !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.28) !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}

.login-story .brand img:last-child,
.login-story .pixwed-brand .pixwed-brand-wordmark {
  height: 52px !important;
  width: 175px !important;
  max-width: 185px !important;
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.login-reference-logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 16px !important;
  background: #ffffff !important;
  padding: 12px 26px 12px 14px !important;
  border-radius: 22px !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18), 0 3px 8px rgba(0, 0, 0, 0.08) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  text-decoration: none !important;
}

.login-studio-logo,
.login-studio-initial {
  width: 80px;
  height: 80px;
  padding: 8px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
}

.login-studio-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.login-studio-initial {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: 4px solid #ffffff;
}

.login-story h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: -1.5px;
  font-weight: 800;
  margin: 40px 0 22px;
  max-width: 500px;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(120, 53, 15, 0.35);
  overflow-wrap: anywhere;
}

.login-story-description {
  font-size: 16px;
  line-height: 1.65;
  max-width: 470px;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
}

.login-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin: 38px 0 18px;
  color: rgba(255, 255, 255, 0.9);
}

.login-eyebrow + h1 {
  margin-top: 0;
}

.login-story ul {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
}

.login-story li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 14px 0;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.95);
}

.login-story li > span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.login-story-security {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  margin-top: 44px;
  padding-top: 23px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.92);
}

.login-story-security svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  flex-shrink: 0;
}

.login-waves {
  position: absolute;
  left: 0;
  bottom: 110px;
  width: 100%;
  height: 340px;
  pointer-events: none;
  opacity: 0.65;
}

/* Right Main Column — Warm Amber Ambient Glow */
.login-main {
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at left top, rgba(254, 243, 199, 0.75), transparent 45%),
              radial-gradient(ellipse at right, rgba(254, 240, 138, 0.4), transparent 50%),
              #f8fafc;
  min-width: 0;
}

.login-card {
  width: 100%;
  max-width: 448px;
  padding: 34px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.login-card h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  text-align: center;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.8px;
  margin: 0 0 8px;
  line-height: 1.3;
  color: #0f172a;
}

.login-description {
  text-align: center;
  color: #64748b;
  line-height: 1.6;
  font-size: 14px;
  margin: 0;
}

.studio-login-form {
  margin-top: 32px;
}

.login-field {
  margin-bottom: 20px;
}

.login-field > label,
.login-label-row label {
  display: block;
  font-size: 13px;
  color: #334155;
  font-weight: 600;
  margin-bottom: 8px;
}

.login-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.login-label-row a {
  font-size: 12px;
  color: #d97706;
  font-weight: 500;
  text-decoration: none;
}

.login-label-row a:hover {
  color: #b45309;
  text-decoration: underline;
}

.login-input {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #cbd5e1;
  border-radius: 28px;
  background: #ffffff;
  min-height: 48px;
  padding: 4px 14px 4px 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input:focus-within {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3.5px rgba(245, 158, 11, 0.2) !important;
}

.login-input-icon {
  width: 38px;
  height: 38px;
  border: 1px solid #f1f5f9;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #94a3b8;
  background: #f8fafc;
}

.login-input svg,
.login-search svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.login-input input {
  background: transparent;
  border: 0;
  outline: 0;
  padding: 10px 6px;
  font-size: 13.5px;
  min-width: 0;
  width: 100%;
  color: #1e293b;
  border-radius: 20px;
}

.login-input input::placeholder,
.login-search input::placeholder {
  color: #94a3b8;
}

.login-input input:focus-visible,
.login-search input:focus-visible {
  outline: 0;
}

.login-submit {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%) !important;
  border: 0 !important;
  color: #ffffff !important;
  border-radius: 30px;
  min-height: 50px;
  padding: 9px 17px 9px 28px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.45);
}

.login-submit > span {
  background: rgba(255, 255, 255, 0.25);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 400;
  color: #ffffff;
}

.reset-submit {
  justify-content: center;
}

.login-bottom {
  border-top: 1px solid #f1f5f9;
  padding-top: 22px;
  margin-top: 24px;
  text-align: center;
  color: #64748b;
  font-size: 13.5px;
}

.login-bottom p {
  margin: 9px 0 0;
}

.login-bottom a {
  color: #d97706;
  font-weight: 600;
  text-decoration: none;
}

.login-bottom a:hover {
  color: #b45309;
  text-decoration: underline;
}

.login-bottom .back-to-signin {
  font-weight: 500;
  color: #64748b;
}

.login-copyright {
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
  margin: 32px 0 0;
}

.login-search {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  border-radius: 28px;
  padding: 5px 18px;
  min-height: 50px;
  margin: 28px 0 0;
  color: #64748b;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-search:focus-within {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3.5px rgba(245, 158, 11, 0.2) !important;
}

.login-search input {
  border: 0;
  background: transparent;
  padding: 10px 0;
  outline: 0;
  font-size: 15px;
  color: #1e293b;
  width: 100%;
  min-width: 0;
  border-radius: 20px;
}

.login-search > svg {
  width: 18px;
  height: 18px;
  color: #94a3b8;
  flex-shrink: 0;
}

.login-mobile-brand {
  display: none;
}

.workspace-result {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  background: #fffbeb;
  border: 1.5px solid #fef08a;
  border-radius: 16px;
  padding: 13px 16px;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.2s ease;
}

.workspace-result:hover {
  border-color: #f59e0b;
  background: #fef3c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

.workspace-result > span:first-child {
  display: grid;
  place-items: center;
  background: #fef08a;
  color: #b45309;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 16px;
}

.workspace-result > div {
  min-width: 0;
  flex: 1;
}

.workspace-result strong {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  display: block;
}

.workspace-result small {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.workspace-empty {
  text-align: center;
  color: #64748b;
  margin: 20px 0 0;
  font-size: 13px;
}

.workspace-empty strong {
  display: block;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.login-card .errors {
  font-size: 12.5px;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 12px 16px;
  margin-top: 20px;
}

.login-card .errors ul {
  padding-left: 16px;
  margin: 0;
}

.sr-only {
  position: absolute;
  left: -10000px;
  overflow: hidden;
  width: 1px;
  height: 1px;
}

@media (max-width: 1050px) {
  .login-story {
    padding: 40px;
  }
  .login-story h1 {
    font-size: 42px;
  }
  .login-story li {
    font-size: 14px;
  }
  .login-main {
    padding: 32px;
  }
}

@media (max-width: 800px) {
  .login-layout {
    display: block;
  }
  .login-story {
    display: none;
  }
  .login-main {
    min-height: 100vh;
    padding: 28px 20px;
  }
  .login-mobile-brand {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 28px !important;
  }
  .login-mobile-brand .brand,
  .login-mobile-brand .pixwed-brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: #ffffff !important;
    padding: 10px 22px 10px 12px !important;
    border-radius: 18px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #f1f5f9 !important;
    text-decoration: none !important;
  }
  .login-mobile-brand img:first-child,
  .login-mobile-brand .pixwed-brand-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
  }
  .login-mobile-brand img:last-child,
  .login-mobile-brand .pixwed-brand-wordmark {
    width: 140px !important;
    height: 42px !important;
    max-width: 150px !important;
    object-fit: contain !important;
  }
  .login-mobile-initial {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 4px solid white;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-radius: 18px;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
  }
  .login-card {
    padding: 28px 24px;
  }
  .login-card h2 {
    font-size: 24px;
  }
  .login-copyright {
    font-size: 12px;
  }
  .login-search input {
    font-size: 14px;
  }
  .studio-login-form {
    margin-top: 26px;
  }
}
