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

:root {
  --red:     #e02020;
  --red2:    #c01010;
  --black:   #111318;
  --surface: #1a1d24;
  --border:  #2a2d38;
  --text:    #f1f3f7;
  --muted:   #8892a4;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--black);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: radial-gradient(ellipse at 20% 50%, rgba(224,32,32,.08) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 20%, rgba(224,32,32,.05) 0%, transparent 50%);
}

.login-wrap {
  width: 100%;
  max-width: 420px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.login-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.login-logo-img {
  width: 300px;
  height: 80px;
  object-fit: contain;
  display: block;
}

.login-sub {
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 32px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.field label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap > i {
  position: absolute;
  left: 13px;
  color: var(--muted);
  font-size: 1rem;
  pointer-events: none;
}
.input-wrap input {
  width: 100%;
  background: #12141a;
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 11px 42px;
  border-radius: 10px;
  font-size: .92rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.input-wrap input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(224,32,32,.15);
}
.input-wrap input::placeholder { color: #3a3f50; }

.toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  display: flex;
  align-items: center;
}
.toggle-pw:hover { color: var(--text); }

.error-msg {
  color: var(--red);
  font-size: .83rem;
  min-height: 20px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-login {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s, transform .15s;
  font-family: inherit;
  margin-top: 8px;
}
.btn-login:hover { background: var(--red2); transform: translateY(-1px); }

.login-footer {
  color: #3a3f50;
  font-size: .78rem;
}
