/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.login-page {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #f1f5f9;
}

/* Login Container */
.login-container {
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(71, 85, 105, 0.4);
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

.login-container h2 {
  text-align: center;
  margin-bottom: 24px;
  font-weight: 700;
  font-size: 28px;
  background: linear-gradient(135deg, #f1f5f9, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Error Message */
.error-msg {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-size: 14px;
  text-align: center;
}

/* Form */
.login-form label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 600;
  color: #e2e8f0;
}

.login-form input {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(71, 85, 105, 0.6);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  color: #f1f5f9;
  font-size: 16px;
  transition: border-color 0.2s, background 0.2s;
}

.login-form input:focus {
  outline: none;
  border-color: #2563eb;
  background: rgba(15, 23, 42, 0.8);
}

.login-form button {
  width: 100%;
  padding: 14px;
  margin-top: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.login-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* Divider */
.login-container > div[style*="OR"] {
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
  position: relative;
  margin: 24px 0;
}

.login-container > div[style*="OR"]::before,
.login-container > div[style*="OR"]::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: rgba(148, 163, 184, 0.3);
}

.login-container > div[style*="OR"]::before {
  left: 0;
}

.login-container > div[style*="OR"]::after {
  right: 0;
}

/* Google Login Button (Customized) */
.g_id_signin {
  display: flex !important;
  justify-content: center !important;
}

/* GitHub Button */
.github-btn {
  display: block;
  width: 100%;
  padding: 14px;
  text-align: center;
  background: rgba(24, 24, 24, 0.8);
  color: white;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
  margin-top: 8px;
}

.github-btn:hover {
  background: rgba(33, 33, 33, 0.9);
  border-color: #f0f6fc;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Register Link */
.register-link {
  text-align: center;
  margin-top: 24px;
  color: #94a3b8;
  font-size: 15px;
}

.register-link a {
  color: #8b5cf6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.register-link a:hover {
  color: #c084fc;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
  .login-container {
    padding: 24px;
  }

  .login-container h2 {
    font-size: 24px;
  }
}