:root {
  --primary: #1976d2;
  --primary-dark: #0d47a1;
  --card-bg: rgba(0, 0, 0, 0.55);
  --text-light: #ffffff;
  --error: #ff6b6b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  background: url('/static/background.jpg') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: var(--text-light);
}

.login-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.glass {
  backdrop-filter: blur(16px);
  background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.login-card {
  padding: 28px 26px 30px;
  text-align: center;
}

.login-logo {
  width: 60px;
  height: auto;
  margin-bottom: 16px;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.9rem;
  font-weight: 600;
}

.subtitle {
  margin: 0 0 24px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(80px, 120px) 1fr;
  align-items: center;
  gap: 12px;
}

label {
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

input,
select {
  padding: 10px;
  border-radius: 10px;
  border: none;
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
  font-size: 1rem;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.input-row input,
.input-row select {
  width: 100%;
}

input:focus,
select:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.6);
}

button[type="submit"] {
  margin-top: 6px;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(13, 71, 161, 0.35);
}

#login-error {
  min-height: 20px;
  margin: 6px 0 0;
  color: var(--error);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 480px) {
  .login-card {
    padding: 24px 20px 30px;
  }

  h1 {
    font-size: 1.6rem;
  }

  .input-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  label {
    font-size: 0.85rem;
  }
}
