@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600;700&display=swap');

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  color: #222;
  transition: 0.3 ease;
}

body {
  background: linear-gradient(to bottom right, #eef2f7, #f9fafb);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25em; /* 20px approx */
  font-size: 1em; /* base font size 16px */
  animation: fadeBody 0.6s ease-in;
}

/* Fade Body In */
@keyframes fadeBody {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Main Card Container */
.container {
  background: rgba(255, 255, 255, 0.15); /* translucent white */
  backdrop-filter: blur(10px); /* frosted blur */
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  border-radius: 1em; /* 16px */
  box-shadow: 0 0.625em 1.5625em rgba(0, 0, 0, 0.07); /* 10px 25px */
  max-width: 65%; /* 420px */
  width: 100%;
  padding: 2.1875em 2.5em; /* 35px 40px */
  text-align: center;
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
  z-index: 2;

  border: 1px solid rgba(255, 255, 255, 0.3); /* subtle white border */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); /* soft shadow for depth */
}


/* Container Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(1.25em); /* 20px */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Headings */
.container h1 {
  font-size: 1.1875em; /* 19px */
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5em; /* 24px */
}

.container h2 {
  font-size: 16px; /* 19px */
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 16px; /* 24px */

}


/* Inputs */
.container input[type="text"],
.container input[type="email"],
.container input[type="password"],
.container input[type="date"],
.container select,
.container textarea  {
  width: 100%;
  padding: 0.875em 1.125em; /* 14px 18px */
  margin-bottom: 1.25em; /* 20px */
  border: 0.125em solid rgba(255, 255, 255, 0.3); /* softer translucent border */
  border-radius: 0.625em; /* 10px */
  font-size: 1em;
  transition: 0.25s ease;
  background: rgba(255, 255, 255, 0.15); /* translucent background */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #222; /* darker text for readability */
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.25);
}
.container select,
.container input[type="date"] {
  -webkit-appearance: none; /* remove default styling */
  -moz-appearance: none;

 appearance: none;
}


.container input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.6);
  background: rgba(255, 255, 255, 0.25);
}
.button-a{
  width:100%;
}
/* Button & Link Buttons */
.container button,
.button-link {
  width: 100%;
  background: rgba(37, 99, 235, 0.8); /* semi-transparent blue */
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4); /* subtle translucent border */
  padding: 0.875em 0; /* 14px */
  border-radius: 0.625em; /* 10px */
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  text-align: center;
  user-select: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.container button:hover,
.button-link:hover {
  background-color: rgba(29, 78, 216, 0.9); /* slightly deeper blue */
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-0.125em); /* 2px */
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.5);
}

.container button:active,
.button-link:active {
  transform: scale(0.98);
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
}

/* Anchor Links */
.container a {
  display: inline-block;
  margin-top: 1.125em; /* 18px */
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.container a:hover {
  color: #1e40af;
  text-decoration: underline;
}

/* Message Alerts */
.message {
  margin-top: 1em; /* 16px approx */
  padding: 0.625em 0.9375em; /* 10px 15px */
  border-radius: 0.5em; /* 8px */
  font-weight: 600;
  font-size: 1em;
  margin-bottom: 1em;
}

.message.success {
  background: #dcfce7;
  color: #15803d;
  border: 0.0625em solid #bbf7d0; /* 1px */
}
.message.warning {
  background: #fcf9dc;
  color: #807015;
  border: 0.0625em solid #f7f3bb; /* 1px */
}
.message.error {
  background: #fee2e2;
  color: #b91c1c;
  border: 0.0625em solid #fecaca; /* 1px */
}

/* Responsive Design */
@media (max-width: 30em) { /* 480px */
  .container {
    padding: 1.5625em 1.25em; /* 25px 20px */
    border-radius: 0.75em; /* 12px */
  }

  .container h1 {
    font-size: 1rem; /* 16px */
  }
    .container h2 {
    font-size: 14px; /* 16px */
  }
}



#mouse-glow {
  position: fixed;
  pointer-events: none;
  width: 14em;
  height: 14em;
  border-radius: 50%;
  background: radial-gradient(circle at center, #3b82f6 0%, #2563eb 40%, #1d4ed8 75%, transparent 100%);
  filter: blur(30px) saturate(1.8) brightness(1.4);
  opacity: 0.9;
  transition: left 0.1s ease-out, top 0.1s ease-out;
  will-change: transform;
  z-index: 1;
  animation: pulseGlow 3.5s ease-in-out infinite, rotateGlow 6s linear infinite;
}


@keyframes pulseGlow {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
}

@keyframes rotateGlow {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.container p{
  font-size: 14px; /* 16px */
  color: #4b5563; /* medium gray */
  margin-top: 10px; /* 24px */
}


    /* Dashboard container */
.box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px; /* 100px */
  padding: 15px; /* 20px */

  font-weight: 400;
  font-size: 1.1rem;
  color: #333;
  z-index: 2;
  
  /* Liquid glass effect */
  background: rgba(255, 255, 255, 0.15); /* translucent white */
  backdrop-filter: blur(10px); /* frosted blur */
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  border-radius: 1em; /* rounded corners */
  border: 1px solid rgba(255, 255, 255, 0.3); /* subtle white border */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); /* subtle shadow for depth */
}

.container strong {
  font-weight: 600;
  color: #1f2937; /* dark gray */
}




.alrt-btn{
   width: 100%;
  background: rgba(37, 99, 235, 0.8); /* semi-transparent blue */
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4); /* subtle translucent border */
  padding: 0.875em 0; /* 14px */
  border-radius: 0.625em; /* 10px */
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  text-align: center;
  user-select: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  margin-top: 1em; /* 18px */
}

.alrt-btn.ab_g{
    background: rgba(100, 235, 37, 0.8); /* semi-transparent blue */
    box-shadow: 0 4px 12px rgba(44, 235, 37, 0.4);
}



.alrt-btn.ab_g:hover {
  background-color: rgba(51, 216, 29, 0.9); /* slightly deeper blue */
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-0.125em); /* 2px */
  box-shadow: 0 8px 20px rgba(53, 235, 37, 0.5);
}

.alrt-btn.ab_g:active {
  transform: scale(0.98);
  box-shadow: 0 3px 8px rgba(110, 235, 37, 0.3);
}



.alrt-btn.ab_y{
    background: rgba(235, 222, 37, 0.8); /* semi-transparent blue */
    box-shadow: 0 4px 12px rgba(235, 205, 37, 0.4);
}

.alrt-btn.ab_y:hover {
  background-color: rgba(213, 216, 29, 0.9); /* slightly deeper blue */
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-0.125em); /* 2px */
  box-shadow: 0 8px 20px rgba(235, 215, 37, 0.5);
}

.alrt-btn.ab_y:active {
  transform: scale(0.98);
  box-shadow: 0 3px 8px rgba(235, 215, 37, 0.3);
}

@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(to bottom right, #0f172a, #1e293b);
    color: #ddd;
  }

  .box {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ddd;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }
  .container {
    background: rgba(30, 41, 59, 0.3); /* darker translucent */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
    color: #eee;
  }

  .container h1 {
    color: #f0f9ff;
  }

    .container h2 {
    color: #f0f9ff;
  }

  .container p{
    color: #e2e8f0;
  }
  .container strong {
    color: #f0f9ff;
  }
  .container input[type="text"],
  .container input[type="email"],
  .container input[type="password"],
.container input[type="date"],
.container select,
.container textarea {
    background: rgba(20, 25, 40, 0.4);
    border: 0.125em solid rgba(255, 255, 255, 0.15);
    color: #ddd;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
  }

  .container input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 12px #60a5fa;
    background: rgba(30, 41, 59, 0.6);
  }

  .container button,
  .button-link {
    background: rgba(37, 99, 235, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.8);
    color: #fff;
  }

  .container button:hover,
  .button-link:hover {
    background-color: rgba(59, 130, 246, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.9);
  }

  .container button:active,
  .button-link:active {
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.6);
  }

  .container a {
    color: #60a5fa;
  }

  .container a:hover {
    color: #3b82f6;
  }

  .message.success {
    background: #134e4a;
    color: #a7f3d0;
    border: 1px solid #22c55e;
  }
  .message.warning {
    background: #4e4513;
    color: #f3e8a7;
    border: 1px solid #c5b522;
  }

  .message.error {
    background: #7f1d1d;
    color: #fecaca;
    border: 1px solid #f87171;
  }
  #mouse-glow {
    background: radial-gradient(circle at center, #3b82f6 0%, #1e40af 50%, transparent 100%);
    filter: blur(30px) saturate(1.6) brightness(1.2);
    opacity: 0.85;
    animation: pulseGlow 3.5s ease-in-out infinite, rotateGlow 6s linear infinite;
  }

  
}



.fade-out {
  animation: fadeOut 0.4s ease-in forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.97);
  }
}


body.fade-out {
  animation: fadeBodyOut 0.4s forwards;
}

@keyframes fadeBodyOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.98);
  }
}
