/* =========================================
   LOGIN PAGE STYLES
   ========================================= */

:root {
  --color-brand-dark: #0f172a; /* slate-900 */
  --color-brand-card: #1e293b; /* slate-800 */
  --color-brand-primary: #0f807b; /* Turbine Green (Standardized) */
  --color-brand-secondary: #115e59; /* Darker Teal */
  --color-text-main: #f8fafc; /* slate-50 */
  --color-text-muted: #94a3b8; /* slate-400 */
  --color-border: #334155; /* slate-700 */
  --font-family: "Inter", system-ui, sans-serif;
}

/* Default Body (Dark Mode) */
body {
  background-color: var(--color-brand-dark);
  color: var(--color-text-main);
  font-family: var(--font-family);
  margin: 0;
  line-height: 1.6;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;
}

/* Light Mode Override */
body.light-mode {
  --color-brand-dark: #f8fafc;
  --color-brand-card: #ffffff;
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
}
body.light-mode {
  background-color: var(--color-brand-dark);
  color: var(--color-text-main);
}

/* Login Card */
.box {
  /* 
   * Glassmorphism Effect
   * We use a semi-transparent background with backdrop-filter to blur the content behind it.
   * This creates a sense of depth and modernity, making the login form feel like it's "floating".
   */
  background: rgba(
    30,
    41,
    59,
    0.6
  ); /* Glass Dark default if inline not supported */
  background-color: var(--color-brand-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  padding: 2.5rem;
  border-radius: 1rem;
  width: 100%;
  max-width: 28rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

body.light-mode .box {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* H2 Gradient - Match Signup */
.box h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 2rem;
  background: linear-gradient(to right, #2dd4bf, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Inputs */
.input-group {
  margin-bottom: 1rem;
}

input,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  margin: 0;
  border-radius: 0.5rem;
  border: 1px solid var(--color-border);
  background: #334155;
  color: white;
  box-sizing: border-box;
  font-size: 1rem;
  transition: all 0.2s;
  outline: none;
}
body.light-mode input {
  background: #f1f5f9;
  color: black;
  border-color: #cbd5e1;
}

input:focus,
select:focus {
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 2px rgba(15, 128, 123, 0.5);
}

input::placeholder {
  color: var(--color-text-muted);
}

/* Buttons */
button {
  width: 100%;
  padding: 0.875rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}
button:hover {
  transform: translateY(-2px);
}

/* Metamask Button */
.meta-btn {
  background-color: #e2761b; /* Metamask Orange */
  color: white;
  margin-top: 0; /* Handled by layout */
  box-shadow: 0 10px 15px -3px rgba(234, 88, 12, 0.3);
}
.meta-btn:hover {
  background-color: #d97316;
}

.meta-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.btn-primary {
  background-color: var(--color-brand-primary);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(15, 128, 123, 0.3);
}
.btn-primary:hover {
  background-color: var(--color-brand-secondary);
}

/* Links */
a {
  color: var(--color-brand-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
a:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.divider {
  position: relative;
  margin: 2rem 0;
  text-align: center;
}
.divider-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
  z-index: 0;
}
.divider-text {
  position: relative;
  z-index: 10;
  background-color: var(--color-brand-card);
  padding: 0 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* Toggle & Home - Floating Actions */
.floating-actions {
  position: absolute;
  top: 1.5rem;
  left: 0;
  width: 100%;
  padding: 0 1.5rem;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  pointer-events: none; /* Let clicks pass if needed? No, buttons need pointer events */
}

/* Wrapper to catch pointer events */
.action-btn {
  pointer-events: auto;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s;
  color: inherit;
  text-decoration: none;
  padding: 0;
  width: auto; /* Reset block button width */
}
.action-btn:hover {
  transform: scale(1.1);
}

.text-sm-center {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
