* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", Arial, sans-serif;
}

body {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 30%),
    radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.22), transparent 28%),
    linear-gradient(135deg, #0f172a 0%, #111827 45%, #020617 100%);
  color: #f8fafc;
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  overflow: hidden;
}

.background-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.9;
  pointer-events: none;
}

.shape-1 {
  width: 280px;
  height: 280px;
  top: 8%;
  left: 10%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.45), rgba(56, 189, 248, 0));
}

.shape-2 {
  width: 320px;
  height: 320px;
  bottom: 6%;
  right: 8%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4), rgba(168, 85, 247, 0));
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  padding: 32px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.login-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.48),
    0 0 30px rgba(59, 130, 246, 0.12);
}

.card-header {
  margin-bottom: 24px;
}

.card-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #bfdbfe;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.card-header h1 {
  margin: 0 0 10px 0;
  font-size: 2rem;
  line-height: 1.1;
}

.card-header p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 18px;
}

.input-group {
  display: grid;
  gap: 8px;
}

.input-group label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #e2e8f0;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 0.95rem;
  opacity: 0.8;
}

.input-wrapper input {
  width: 100%;
  padding: 15px 48px 15px 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-size: 0.96rem;
  outline: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.input-wrapper input::placeholder {
  color: #94a3b8;
}

.input-wrapper input:focus {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.toggle-password {
  position: absolute;
  right: 10px;
  border: none;
  background: transparent;
  color: #93c5fd;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 8px;
}

.toggle-password:hover {
  color: #dbeafe;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.remember-me {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.92rem;
  cursor: pointer;
}

.remember-me input {
  accent-color: #60a5fa;
}

.forgot-link,
.card-footer a {
  color: #93c5fd;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-link:hover,
.card-footer a:hover {
  color: #dbeafe;
}

.submit-btn {
  margin-top: 4px;
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 15px 18px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(59, 130, 246, 0.28);
  filter: brightness(1.06);
}

.card-footer {
  margin-top: 22px;
  text-align: center;
}

.card-footer p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.92rem;
}

@media (max-width: 520px) {
  .login-card {
    padding: 24px;
    border-radius: 20px;
  }

  .card-header h1 {
    font-size: 1.7rem;
  }

  .input-wrapper input {
    padding: 14px 46px 14px 40px;
  }

  .shape-1,
  .shape-2 {
    display: none;
  }
}