/* OPERA login — matches main app FUI / HUD aesthetic */
@font-face {
  font-family: "Helvetica Now Display";
  src: url("../fonts/HelveticaNowDisplay.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Now Display";
  src: url("../fonts/HelveticaNowDisplayMedium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:        #141414;
  --bg-deep:   #101010;
  --bg-main:   #141414;
  --glass-tint:     #000000;
  --glass-filter:   none;
  --line:      rgba(228, 232, 236, 0.14);
  --line-soft: rgba(228, 232, 236, 0.07);
  --text:      #ece7e2;
  --text-dim:  #7c756e;
  --accent:    #ff7d2e;
  --alert:     #ff4329;
  --f-label: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-brand: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body { height: 100%; }

body {
  background: var(--bg-main);
  color: var(--text);
  font-family: var(--f-label);
  letter-spacing: 0.01em;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.login {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px;
}

.login__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.login__logo {
  display: block;
  width: clamp(200px, 42vw, 300px);
  height: auto;
}

.login__panel {
  width: min(400px, 100%);
  padding: clamp(20px, 3vw, 28px);
  background-color: #000000;
  border: 1px solid var(--line-soft);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.login__form {
  display: grid;
  gap: 16px;
}

.login__field {
  display: grid;
  gap: 8px;
}

.login__field span {
  font-family: var(--f-label);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.login__field input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-family: var(--f-label);
  font-size: 13px;
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.login__field input::placeholder {
  color: var(--text-dim);
  opacity: 0.65;
}

.login__field input:focus {
  border-color: var(--accent);
  color: var(--text);
}

.login__error {
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--alert);
}

.login__btn {
  margin-top: 4px;
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--text-dim);
  font-family: var(--f-label);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.login__btn:hover:not(:disabled) {
  color: var(--accent);
  border-color: var(--accent);
}

.login__btn:disabled {
  opacity: 0.5;
  cursor: wait;
}
