@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-color: #0b0f19;
  --card-bg: rgba(18, 24, 38, 0.75);
  --accent-color: #2563eb;
  --accent-hover: #1d4ed8;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --input-bg: rgba(15, 23, 42, 0.6);
  --danger-color: #ef4444;
}

body {
  min-height: 100vh;
  background-color: var(--bg-color);
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  position: relative;
  overflow-x: hidden;
}

/* -------------------------------------------------------------
   TEXTURE BACKGROUND (Emboss / Watermark Effect)
------------------------------------------------------------- */
.bg-texture {
  position: fixed;
  inset: 0;
  z-index: 0;
  /* Update the path below to match where you saved the image */
  background-image: url('./images/logo-background.png'); 
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(85vw, 750px);
  opacity: 0.08; /* Subtle transparency */
  filter: invert(1) contrast(150%); /* Pops white lines on dark BG */
  pointer-events: none;
}

/* Ambient glow behind the form */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 1.5rem;
}

.login-wrapper::before {
  content: '';
  position: absolute;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
}

/* -------------------------------------------------------------
   LOGIN CARD
------------------------------------------------------------- */
.login-container {
  width: 100%;
  max-width: 400px;
  padding: 2.5rem;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
              inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 14px;
  color: #60a5fa;
  margin-bottom: 1rem;
}

.login-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.login-header p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.editor-label label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* Styling native ASP.NET inputs & select boxes */
.editor-field input[type="text"],
.editor-field input[type="password"],
.editor-field select {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.editor-field select option {
  background-color: #121826;
  color: var(--text-primary);
}

.editor-field input:focus,
.editor-field select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* Validation Messages */
.text-danger, 
.field-validation-error {
  color: var(--danger-color);
  font-size: 0.75rem;
  margin-top: 0.35rem;
  display: block;
}

.validation-summary-wrapper {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 1.25rem;
  color: #fca5a5;
  font-size: 0.8125rem;
}

.validation-summary-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

/* Submit Button */
.form-actions {
  margin-top: 1.5rem;
}

.submit-btn {
  width: 100%;
  padding: 0.875rem;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.submit-btn:hover {
  background: var(--accent-hover);
}

.submit-btn:active {
  transform: scale(0.99);
}
