/* Public login page — matches React LoginPage styling */

:root {
  --edu-bg: #f8fafc;
  --edu-border: #e2e8f0;
  --edu-border-soft: #e2e8f0;
  --edu-text: #111827;
  --edu-muted: #6b7280;
  --edu-orange: #b8860b;
  --edu-orange-dark: #8a6500;
  --edu-blue: #2563eb;
  --edu-red: #dc2626;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--edu-text);
}

.lyd-login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(20px, 5vw, 81px);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(255, 253, 248, 0.96) 46%, rgba(176, 141, 73, 0.16) 100%),
    var(--edu-bg);
}

.lyd-login-card {
  width: min(1150px, 100%);
  min-height: min(760px, calc(100vh - 96px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(176, 141, 73, 0.28);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(120, 75, 0, 0.13);
}

.lyd-login-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--edu-border-soft);
  padding: 0 clamp(25px, 4vw, 54px);
}

.lyd-login-logo {
  display: inline-flex;
  align-items: center;
  width: min(255px, 62vw);
  min-height: 44px;
}

.lyd-login-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.lyd-login-content {
  display: grid;
  place-items: start center;
  padding: clamp(38px, 6vw, 65px) 20px 64px;
}

.lyd-login-panel {
  display: grid;
  gap: 16px;
  width: min(420px, 100%);
}

.lyd-login-heading {
  display: grid;
  gap: 8px;
}

.lyd-login-heading h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 43px);
  line-height: 1.08;
}

.lyd-login-heading p,
.lyd-login-footnote {
  margin: 0;
  color: var(--edu-muted);
  font-size: 15px;
  line-height: 1.55;
}

.lyd-login-panel label {
  display: grid;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}

.lyd-login-panel input[type="text"],
.lyd-login-panel input[type="password"] {
  height: 44px;
  border: 1px solid var(--edu-border-soft);
  border-radius: 8px;
  padding: 0 13px;
  font: inherit;
}

.lyd-login-panel input:focus {
  outline: 0;
  border-color: var(--edu-orange);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}

.lyd-password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  border: 1px solid var(--edu-border-soft);
  border-radius: 8px;
  overflow: hidden;
}

.lyd-password-field:focus-within {
  border-color: var(--edu-orange);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}

.lyd-password-field input {
  border: 0;
  box-shadow: none;
}

.lyd-password-field button {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--edu-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.lyd-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 15px;
}

.lyd-remember-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.lyd-login-link {
  color: var(--edu-orange-dark);
  font-weight: 800;
  text-decoration: none;
}

.lyd-login-submit {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--edu-orange);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
}

.lyd-login-submit:disabled {
  opacity: 0.68;
  cursor: wait;
}

.lyd-login-footnote {
  text-align: center;
}

.lyd-form-error {
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.08);
  color: var(--edu-red);
  padding: 10px 12px;
  font-size: 15px;
}

.lyd-form-error[hidden] {
  display: none;
}
