:root {
  --bg: #1f1a2b;
  --card-bg: rgba(31, 26, 43, 0.94);
  --border: #6c4dd866;
  --accent: #005c69;
  --accent-soft: #dbb6d6;
  --text-main: #f4f2f3;
  --text-sub: #ebebebc7;
  --error: #ff7b7b;
  --success: #8fe39b;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-card: 0 10px 30px rgba(31, 26, 43, 0.55);
  --font-main: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Verdana", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: url("imgs/loginbkg.jpg") center/cover;
  color: var(--text-main);
}

.auth-wrapper {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 10%;
}

.auth-card {
  width: min(460px, 94vw);
  background: rgba(31, 26, 43, 0.781);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(28px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(126, 119, 98, 0.24);
  padding: 28px 24px 22px;
  box-shadow: 10px 20px 60px 25px rgba(20, 9, 48, 0.514);
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  text-align: center;
  letter-spacing: 0.03em;
}

.sub {
  margin: 0 0 18px;
  text-align: center;
  color: #e5dcfcd5;
  font-size: 0.95rem;
}

.bottom-link {
  margin-top: 22px;
  text-align: center;
}

form {
  margin: 0;
}

.field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(31,26,43,0.85);
  border-radius: var(--radius-md);
  border: 1px solid rgba(126, 119, 98, 0.24);
  padding: 10px 12px;
  margin-bottom: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0,92,105,0.5);
}

.field-icon {
  font-size: 1.1rem;
}

.field input {
  border: none;
  outline: none;
  background: transparent;
  color: #ffffff;
  font-size: 0.98rem;
  width: 100%;
}

.field input::placeholder {
  color: #9e9e9ec4;
}

.btn {
  width: 100%;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 4px;
  background: linear-gradient(135deg, #ba4de6, #76dfdfa1);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform 0.08s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 18px rgba(31, 26, 43, 0.6);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(31, 26, 43, 0.5);
}

.link {
  color: rgba(228, 190, 253, 0.733);
  text-decoration: none;
  font-weight: 500;
}

.link:hover {
  text-decoration: underline;
}

.msg {
  margin-top: 10px;
  min-height: 1.2em;
  font-size: 0.9rem;
}

.msg.error {
  color: var(--error);
}

.msg.success {
  color: var(--success);
}
