* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url('../images/choir-background.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

@media (max-width: 1024px) {
  body {
    padding-left: 28px;
    padding-right: 28px;
  }
}

.login-overlay {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 100%;
  max-width: 430px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  padding: 32px 28px;
}

.login-card h1 {
  margin: 0 0 10px;
  font-size: 1.85rem;
  text-align: center;
  color: #1f2a44;
}

.login-card .subtitle {
  margin: 0 0 24px;
  text-align: center;
  color: #555;
  font-size: 0.98rem;
  line-height: 1.4;
}

.error-box {
  background: #ffe9e9;
  color: #a40000;
  border: 1px solid #e3b3b3;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  color: #333;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #4f6fad;
  box-shadow: 0 0 0 3px rgba(79, 111, 173, 0.15);
}

.login-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  background: #1f2a44;
  color: #fff;
  transition: background 0.2s ease, transform 0.08s ease;
}

.login-btn:hover {
  background: #2b3a5d;
}

.login-btn:active {
  transform: translateY(1px);
}

.back-link {
  margin-top: 18px;
  text-align: center;
}

.back-link a {
  color: #1f2a44;
  text-decoration: none;
  font-size: 0.95rem;
}

.back-link a:hover {
  text-decoration: underline;
}

.redirect-note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.88rem;
  color: #666;
  word-break: break-word;
}

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

  .login-card h1 {
    font-size: 1.55rem;
  }
}
