/* === FONT IMPORTS === */
/* Load Inter and Open Sans for clean, readable UI */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap');

/* === GLOBAL RESET === */
/* Reset box model, margin, and padding */
body, h1, h2, h3, h4, h5, h6, p, div, span, a, input, form {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Calibri", "Segoe UI", sans-serif;
}

/* === BODY BACKGROUND AND LAYOUT === */
/* Center content and add subtle blur circles */
body {
  margin: 0;
  min-height: 100vh;
  background: #232C64;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Floating blurred shapes in the background */
body::before, body::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
  filter: blur(70px);
  z-index: 0;
}

body::before {
  width: 280px;
  height: 280px;
  background-color: #e0f2fe;
  top: 15%;
  left: 8%;
  animation: floatFade 8s ease-in-out infinite alternate;
}

body::after {
  width: 230px;
  height: 230px;
  background-color: #90cdf4;
  bottom: 12%;
  right: 15%;
  animation: floatFade 8s ease-in-out infinite alternate;
}

/* Main white container for the form */
.login-box {
  background: #ffffff;
  width: 400px;
  max-width: 100%;
  padding: 45px 40px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
  
}

/* === LOGO SECTION === */
.wag-logo {
  text-align: center;
  margin-bottom: 30px;
}

.wag-logo img {
  max-width: 100%;
  height: auto;
}

/* === INPUT FIELDS === */
/* Input wrapper */
.ping-input-container {
  margin-bottom: 20px;
  position: relative;
}

/* Input styles */
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 14px 15px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #2d3748;
  font-size: 16px;
  transition: all 0.3s ease-in-out;
}

input::placeholder {
  color: #a0aec0;
}

/* Focus effects */
input:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
  background: #ffffff;
}

/* === FLOATING LABELS === */
.moving_label {
  position: absolute;
  left: 10px;
  top: -0%;
  transform: translateY(-100%);
  font-size: 15px;
  color: #56AEE1;
  pointer-events: none;
  transition: 0.2s ease;
}

/* Fix label up when field has value OR autofill */
input:focus + .moving_label,
input:not(:placeholder-shown) + .moving_label,
input:-webkit-autofill + .moving_label {
  transform: translateY(-100%);
  font-size: 15px;
  color: #56AEE1;
}

/* === MESSAGES & ERRORS === */
.ping-messages {
  margin-bottom: 20px;
  font-size: 16px;
  color: #4299e1;
}

/* Error alert box */
.ping-error {
  background: #ffebeb;
  border-left: 4px solid #ef4444;
  color: #b91c1c;
  padding: 12px;
  margin-bottom: 18px;
  border-radius: 10px;
  font-size: 14px;
  animation: shake 0.5s ease-in-out;
}

/* === BUTTON === */
/* Sign In Button styling with new animation */
button.signOn {
  background-color: #ffffff;
  border: 3px solid #232C64;
  padding: 10px 30px;
  border-radius: 50px; /* More pill-like */
  color: #232C64;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0px;
  /* Centering properties */
  display: block; /* Makes the button a block-level element */
  margin: 0 auto; /* Centers the block horizontally */
  width: fit-content; /* Adjusts width to content, allowing margin auto to work */
  transition: background-color 0.2s ease, color 0.2s ease;
}

button.signOn:hover {
  background-color: #232C64;
  color: #ffffff;
}


/* === HELP LINK SECTION === */
.ping-input-link {
  text-align: center;
  margin-top: 20px;
  font-size: 15px;
}

.ping-input-link a {
  color: #4299e1;
  text-decoration: none;
  font-weight: 600;
}

.ping-input-link a:hover {
  text-decoration: underline;
}

/* === SECURE FOOTER LOGO === */
.secure-logo {
  text-align: center;
  margin-top: 25px;
}

.secure-logo img {
  max-width: 100px;
  opacity: 0.8;
  transition: 0.3s ease;
}

.secure-logo img:hover {
  opacity: 1;
}

.secure-logo {
    /*background-color: #F0F8FF; /* Example: Alice blue background */
    padding: 1px 0px; /* Add some space around the text */
    border-radius: 10px; /* Slightly rounded corners */
    display: inline-block; /* Makes the background fit the content */
	color: red; /* Example: red text */
    font-family: Calibri, sans-serif;
    font-size: 14px;
    font-weight: bold;
	text-align: center;
    margin-top: 7px;
		
}

/* === ANIMATIONS === */

/* Float background blob movement */
@keyframes floatFade {
  0% { transform: translateY(0); }
  100% { transform: translateY(20px); }
}

/* Shake animation for error */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* New Button Animation: subtle glow */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(66, 153, 225, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(66, 153, 225, 0); }
  100% { box-shadow: 0 0 0 0 rgba(66, 153, 225, 0); }
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 500px) {
  .login-box {
    padding: 30px 20px;
  }
}

