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

:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --dark: #111827;
  --muted: #6b7280;
  --primary: #10213f;
  --primary-2: #172f59;
  --blue: #4f8cff;
  --red: #ef4444;
  --border: #e5e7eb;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(79, 140, 255, 0.18), transparent 35%),
    radial-gradient(circle at bottom right, rgba(16, 33, 63, 0.16), transparent 35%),
    var(--bg);
  color: var(--dark);
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 430px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 34px;
}

.logo-area {
  height: 92px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.login-logo {
  max-height: 64px;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.logo-placeholder {
  position: absolute;
  color: #ffffff;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 2px;
}

.login-logo[src] + .logo-placeholder {
  display: none;
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-header h1 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 10px;
}

.login-header p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.form-group input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 16px;
  font-size: 15px;
  outline: none;
  background: #f9fafb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-group input:focus {
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.14);
}

.error-message {
  min-height: 20px;
  font-size: 14px;
  color: var(--red);
  text-align: center;
  font-weight: 600;
}

.login-button {
  height: 54px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(16, 33, 63, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(16, 33, 63, 0.30);
}

.login-button:active {
  transform: scale(0.98);
}

@media (max-width: 500px) {
  .login-card {
    padding: 26px;
    border-radius: 26px;
  }

  .login-header h1 {
    font-size: 24px;
  }

  .logo-area {
    height: 82px;
  }
}