*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red: #E10600;
  --black: #0A0A0A;
  --white: #FFFFFF;
  --input-bg: #F5F5F5;
  --gray-border: #2E2E2E;
  --gray-text: #888888;
  --label-color: #BBBBBB;
  --font: 'DM Sans', sans-serif;
}

body {
  font-family: var(--font);
  background: #050505;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  z-index: 10;
}

.login-panel {
  width: 100%;
  max-width: 688px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
}

.login-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
}
.login-logo svg { width: 100%; height: 100%; }

.login-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 32px;
  text-align: center;
}

.login-form {
  width: 100%;
  max-width: 370px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.field-group {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--label-color);
  margin-bottom: 8px;
}

.input-wrap {
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border-radius: 5px;
  border: 1.5px solid transparent;
  overflow: hidden;
  transition: border-color 0.15s;
  height: 48px;
}
.input-wrap:focus-within {
  border-color: var(--white);
}

.input-icon {
  width: 44px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.input-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #aaa;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font);
  font-size: 14px;
  color: #333;
  padding-right: 12px;
}
.login-input::placeholder { color: #aaa; }

.btn-toggle-pw {
  width: 44px;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.btn-toggle-pw:hover { opacity: 0.6; }
.btn-toggle-pw svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #d1c0c0;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field-error {
  font-size: 11px;
  color: #ff5252;
  margin-top: 5px;
  display: none;
}
.field-error.visible { display: block; }

.btn-login {
  width: 100%;
  height: 52px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 5px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 24px;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-login:hover { background: #c50500; }
.btn-login:disabled { background: #8a0400; cursor: not-allowed; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: #2a2a2a;
}
.divider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a3a3a;
  flex-shrink: 0;
}

.forgot-link {
  text-align: center;
  font-size: 13px;
  color: var(--gray-text);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
  transition: color 0.15s;
}
.forgot-link:hover { color: var(--white); }

.login-logo{
  width: 200px;
  height: 200px;
  margin-bottom: -25px;

}

.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

a.forgot-link {
  display: block;
  text-decoration: none;
}

.login-msg-box {
  display: none;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.4;
}
.login-msg-error {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: #ff6b6b;
}
.login-msg-error svg { stroke: #ff6b6b; flex-shrink: 0; margin-top: 1px; }
.login-msg-success {
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.35);
  color: #4ade80;
}
.login-msg-success svg { stroke: #4ade80; flex-shrink: 0; margin-top: 1px; }
