/* Reset some defaults */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(to right, #1e1e2f, #282c34);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: white;
  padding: 20px;
}

/* Main container */
.container {
  background: #1e1e2f;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

/* Heading */
.container h2 {
  margin-bottom: 24px;
  font-size: 1.8rem;
}

/* Form styling */
.form-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Inputs */
input[type="email"],
input[type="password"] {
  padding: 12px 16px;
  border: 1px solid #555;
  border-radius: 8px;
  background-color: #2c2f3a;
  color: white;
  font-size: 1rem;
  transition: border 0.2s ease;
  width: 100%;
}

input:focus {
  border-color: #40c9ff;
  outline: none;
}

/* Buttons */
.button-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.button {
  background-color: #000;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.button:hover {
  transform: scale(1.05);
}

/* Gradient glow effect */
.button::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -4px;
  top: -1px;
  margin: auto;
  width: 128px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(-45deg, #e81cff 0%, #40c9ff 100%);
  z-index: -10;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.google-btn {
  background-color: #4285f4;
  color: white;
  padding: 12px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 16px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  width: 100%;
}

.google-btn:hover {
  background-color: #357ae8;
}

/* Divider */
.divider {
  margin: 20px 0;
  color: #aaa;
}

/* Flash and error messages */
.flash,
#error-message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.flash {
  background-color: #444;
  color: #fff;
}

#error-message {
  background-color: #b00020;
}

/* Forgot password link */
.forgot-link {
  margin-top: 15px;
  text-align: center;
}

.forgot-link a {
  color: #d4af37;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.forgot-link a:hover {
  color: red;
  text-decoration: underline;
}

/* ✅ MOBILE RESPONSIVE */
@media (max-width: 480px) {
  .container {
    padding: 24px 16px;
    border-radius: 12px;
  }

  .container h2 {
    font-size: 1.5rem;
  }

  input[type="email"],
  input[type="password"],
  .button,
  .google-btn {
    font-size: 0.95rem;
    padding: 10px 12px;
  }

  .button::before {
    width: 100%;
    height: 100%;
  }

  .button-row {
    gap: 10px;
  }

  .flash,
  #error-message {
    font-size: 0.85rem;
  }
}
