/**
 * Login — Varyant A Editorial Split
 */

body.mat-login-page {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: var(--mat-font-body, "Inter", system-ui, sans-serif);
}

.mat-login-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.mat-login-split__brand {
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.75rem);
  background-color: #2a0509;
  background-image: url('../login-image.jpeg');
  background-size: cover;
  background-position: 52% 22%;
  background-repeat: no-repeat;
  color: #fff;
  display: block;
  overflow: hidden;
}

.mat-login-split__theory-label {
  position: absolute;
  top: clamp(1.25rem, 3.5vw, 2rem);
  left: clamp(1.25rem, 4vw, 2.75rem);
  z-index: 2;
  margin: 0;
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.92;
}

.mat-login-workshop {
  position: absolute;
  z-index: 2;
  max-width: min(19rem, 46vw);
  line-height: 1.38;
  font-family: var(--mat-font-display, "Playfair Display", Georgia, serif);
  font-size: clamp(1.12rem, 2vw, 1.48rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  will-change: transform;
}

.mat-login-workshop--tl {
  top: clamp(3.5rem, 14vh, 5.5rem);
  left: clamp(1rem, 3.5vw, 2.25rem);
  animation: mat-login-drift-tl 16s ease-in-out infinite;
}

.mat-login-workshop--br {
  right: clamp(1rem, 3.5vw, 2.25rem);
  bottom: clamp(3.5rem, 14vh, 5.5rem);
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15em;
  animation: mat-login-drift-br 18s ease-in-out infinite;
}

.mat-login-workshop__prefix {
  font-weight: 400;
  opacity: 0.95;
}

.mat-login-workshop__bold {
  font-weight: 700;
}

.mat-login-workshop__italic {
  font-style: italic;
  font-weight: 400;
  opacity: 0.95;
}

@keyframes mat-login-drift-tl {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(10px, 8px);
  }
  50% {
    transform: translate(4px, 16px);
  }
  75% {
    transform: translate(-6px, 6px);
  }
}

@keyframes mat-login-drift-br {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-8px, -6px);
  }
  50% {
    transform: translate(-14px, 4px);
  }
  75% {
    transform: translate(-4px, -10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mat-login-workshop--tl,
  .mat-login-workshop--br {
    animation: none;
  }
}

.mat-login-split__brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    165deg,
    rgba(42, 5, 9, 0.82) 0%,
    rgba(92, 1, 16, 0.62) 50%,
    rgba(42, 5, 9, 0.48) 100%
  );
  pointer-events: none;
}

.mat-login-split__brand::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1), transparent 45%);
  pointer-events: none;
}

.mat-login-split__brand-inner {
  position: absolute;
  z-index: 3;
  left: clamp(1.25rem, 4vw, 2.75rem);
  bottom: clamp(1.75rem, 6vh, 3rem);
  max-width: min(18rem, 52vw);
  text-align: left;
  margin: 0;
}

.mat-login-split__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.mat-login-split__title {
  font-family: var(--mat-font-display, "Playfair Display", Georgia, serif);
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.25rem;
}

.mat-login-split__line {
  width: 48px;
  height: 3px;
  background: rgba(255, 255, 255, 0.45);
  margin: 0 0 0.75rem;
}

.mat-login-split__quote {
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.55;
  opacity: 0.92;
  margin: 0;
  font-style: italic;
}

.mat-login-split__lead {
  font-size: clamp(1.18rem, 1.85vw, 1.42rem);
  line-height: 1.45;
  opacity: 0.96;
  margin: 0 0 0.85rem;
  font-weight: 600;
  font-style: normal;
}

.mat-login-split__form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
  background: #fff;
}

.mat-login-split__form-inner {
  width: 100%;
  max-width: 380px;
}

.mat-login-split__head {
  margin-bottom: 1.35rem;
}

.mat-login-split__head h1 {
  font-family: var(--mat-font-display, "Playfair Display", Georgia, serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.35rem;
}

.mat-login-split__head p {
  color: #64748b;
  font-size: 0.92rem;
  margin: 0;
}

.mat-auth-field {
  margin-bottom: 1rem;
}

.mat-auth-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}

.mat-auth-input-wrap {
  position: relative;
}

.mat-auth-input-wrap > i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.92rem;
  pointer-events: none;
}

.mat-auth-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.72rem 0.85rem 0.72rem 2.35rem;
  font-size: 0.95rem;
  background: #f8fafc;
  color: #0f172a;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.mat-auth-input:focus {
  outline: none;
  border-color: #900216;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(144, 2, 22, 0.12);
}

.mat-auth-remember {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: #64748b;
  margin-bottom: 1rem;
  cursor: pointer;
}

.mat-auth-remember input {
  accent-color: #900216;
}

.mat-auth-submit {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 0.78rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: #900216;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.mat-auth-submit:hover:not(:disabled) {
  background: #7a0112;
  box-shadow: 0 8px 20px rgba(144, 2, 22, 0.28);
}

.mat-auth-submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

.mat-auth-submit i {
  margin-right: 0.35rem;
}

.mat-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0;
  color: #94a3b8;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mat-auth-divider::before,
.mat-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.mat-auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.72rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.mat-auth-google:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

.mat-auth-google i {
  color: #4285f4;
}

.mat-auth-aux {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  margin-top: 1rem;
  font-size: 0.86rem;
}

.mat-auth-aux a {
  color: #900216;
  font-weight: 600;
  text-decoration: none;
}

.mat-auth-aux a:hover {
  text-decoration: underline;
}

.mat-auth-aux span {
  color: #cbd5e1;
}

.mat-auth-legal {
  margin: 1rem 0 0;
  font-size: 0.72rem;
  line-height: 1.55;
  color: #94a3b8;
  text-align: center;
}

.mat-auth-legal a {
  color: #64748b;
  text-decoration: underline;
}

.mat-auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.mat-auth-alert--danger {
  background: #fef2f2;
  color: #991b1b;
  border-left: 3px solid #900216;
}

.mat-auth-alert--success {
  background: #f0fdf4;
  color: #166534;
  border-left: 3px solid #22c55e;
}

[data-theme="dark"] .mat-login-split__form-wrap {
  background: #0f172a;
}

[data-theme="dark"] .mat-login-split__head h1 {
  color: #f1f5f9;
}

[data-theme="dark"] .mat-login-split__head p,
[data-theme="dark"] .mat-auth-remember {
  color: #94a3b8;
}

[data-theme="dark"] .mat-auth-label {
  color: #e2e8f0;
}

[data-theme="dark"] .mat-auth-input {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

[data-theme="dark"] .mat-auth-input:focus {
  background: #111827;
}

[data-theme="dark"] .mat-auth-google {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

[data-theme="dark"] .mat-auth-divider::before,
[data-theme="dark"] .mat-auth-divider::after {
  background: #334155;
}

.mat-auth-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.mat-auth-back:hover {
  color: #900216;
}

.mat-auth-home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 1.35rem;
  padding: 0.72rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.mat-auth-home:hover {
  border-color: #900216;
  color: #900216;
  background: #fffafb;
}

.mat-auth-hint {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

[data-theme="dark"] .mat-auth-hint {
  color: #94a3b8;
}

[data-theme="dark"] .mat-auth-back {
  color: #94a3b8;
}

[data-theme="dark"] .mat-auth-home {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

[data-theme="dark"] .mat-auth-home:hover {
  border-color: #c41e3a;
  color: #fca5a5;
  background: #0f172a;
}

@media (max-width: 767.98px) {
  .mat-login-split {
    grid-template-columns: 1fr;
  }

  .mat-login-split__brand {
    min-height: 320px;
    padding: 2rem 1.5rem;
    background-position: 50% 18%;
  }

  .mat-login-workshop {
    max-width: 13rem;
    font-size: 1rem;
  }

  .mat-login-workshop--tl {
    top: 3rem;
    left: 0.85rem;
  }

  .mat-login-workshop--br {
    right: 0.85rem;
    bottom: 1.25rem;
    top: auto;
    text-align: right;
    max-width: 10.5rem;
    font-size: 0.92rem;
  }

  .mat-login-split__theory-label {
    left: 0.85rem;
    top: 1rem;
    font-size: 0.78rem;
  }

  .mat-login-split__brand-inner {
    left: 0.85rem;
    bottom: 1.25rem;
    max-width: 52%;
  }
}
