/* css/login.css */

/* CSS Variables */
:root {
  --primary-color: #c62828;
  --light-grey-color: #f2f2f2;
}

/* Base reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, html {
  height: 100%;
  font-family: "Roboto", sans-serif;
  background: var(--light-grey-color);
}
a {
  font-size: 14px;
  color: #666;
  transition: color 0.3s;
}
a:hover {
  color: #fff;
  text-decoration: none;
}

/* Login container */
.limiter {
  width: 100%;
  min-height: 100vh;
  background: url('../images/bg-01.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wrap-login100 {
  width: 390px;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  padding: 30px 20px 50px;
  position: relative; /* enable positioning for spinner overlay */
}
.container-login100 {
  position: relative; /* enable spinner overlay */
}

.login100-form-title {
  font-family: "Quicksand", sans-serif;
  font-size: 28px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
}

/* Inputs */
.wrap-input100 {
  position: relative;
  border-bottom: 1px solid #e6e6e6;
  margin-bottom: 30px;
}
.input100 {
  width: 100%;
  padding: 10px 20px;
  font-size: 16px;
  color: #555;
  background: transparent;
}
.focus-input100::after {
  content: attr(data-placeholder);
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: "FontAwesome";
  transition: top 0.3s, font-size 0.3s;
}
.input100:focus + .focus-input100::after,
.has-val.input100 + .focus-input100::after {
  top: -20px;
  font-size: 12px;
  color: var(--primary-color);
}

/* Button */
.login100-form-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 0;
  background: var(--primary-color);
  color: white;
  border-radius: 21px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s;
  border: none;
}
.login100-form-btn:hover {
  background: rgb(34, 34, 34);
}

/* Signup button */
.signup-btn {
  display: inline-block;
  padding: 8px 16px;
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.signup-btn:hover {
  background: var(--primary-color);
  color: white;
}

/* Spinner Overlay (hidden by default) */
.spinner-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Utility: show spinner when overlay active */
.spinner-overlay.active {
  display: flex;
}

/* Utility classes */
.p-t-30 { padding-top: 30px; }
.p-b-50 { padding-bottom: 50px; }
.p-b-41 { padding-bottom: 41px; }
.p-b-33 { padding-bottom: 33px; }
.p-t-5 { padding-top: 5px; }
.p-t-10 { padding-top: 10px; }
.m-t-32 { margin-top: 32px; }
.text-center { text-align: center; }

/* Validation styles */
.validate-input[data-validate]:before {
  content: attr(data-validate);
  position: absolute;
  max-width: 70%;
  background-color: white;
  border: 1px solid #c80000;
  border-radius: 2px;
  padding: 4px 25px 4px 10px;
  top: 50%;
  transform: translateY(-50%);
  right: 0px;
  pointer-events: none;
  font-family: "Roboto", sans-serif;
  color: #c80000;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s;
}

.validate-input[data-validate]:after {
  content: "\f06a";
  font-family: "FontAwesome";
  position: absolute;
  color: #c80000;
  font-size: 16px;
  top: 50%;
  transform: translateY(-50%);
  right: 5px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s;
}

.validate-input.alert-validate:before {
  visibility: visible;
  opacity: 1;
}

.validate-input.alert-validate:after {
  visibility: visible;
  opacity: 1;
}

/* Message styles for activation/verification pages */
.activate-message {
  text-align: center;
  padding: 1rem;
  color: #666;
  line-height: 1.6;
  font-size: 1rem;
}

/* 1. Force html/body to fill the viewport and hide scrollbars */
html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

/* 2. Stack nav + content with flex so they never exceed 100vh */
body {
  display: flex;
  flex-direction: column;
}

/* 3. Let nav size to its natural height */
.main-nav {
  flex: 0 0 auto;
}

/* 4. The ".limiter" now fills the rest of the screen exactly */
.limiter {
  flex: 1 1 auto !important;    /* take available space */
  display: flex !important;     /* keep centering its child */
  align-items: center !important;
  justify-content: center !important;
  /* height rules from before can be removed or overridden */
  height: auto !important;
  min-height: auto !important;
  overflow: hidden;             /* no inner scroll */
}

/* 5. Inner wrapper just shrink-wraps your card */
.wrap-login100 {
  width: 500px !important;         /* 2.5x current width, or use 1200px for exactly 3x */
  max-width: 500px !important;     /* prevents overflow on huge screens */
  margin: 0 auto !important;
  padding: 50px 40px 70px !important; /* More padding for height and horizontal space */
  background: #ffffff !important;
  border-radius: 10px !important;
  position: static !important;
  overflow: visible !important;
}