@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap");

body.hayole-login {
  min-height: 100vh;
  margin: 0;
  font-family: "Nunito", sans-serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(129, 140, 248, 0.45), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(45, 212, 191, 0.35), transparent 26%),
    radial-gradient(circle at 70% 90%, rgba(251, 191, 36, 0.35), transparent 24%),
    linear-gradient(145deg, #1e1b4b 0%, #312e81 46%, #0f766e 100%);
  overflow-x: hidden;
}

body.hayole-login::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='white' stroke-width='1.4'%3E%3Cpath d='M24 48h28a10 10 0 0 1 10 10v36H34a10 10 0 0 1-10-10V48z'/%3E%3Cpath d='M62 48H34'/%3E%3Cpath d='M110 36l5 10 11 1-8 8 2 11-10-5-10 5 2-11-8-8 11-1z'/%3E%3Cpath d='M128 96l18-8 18 8v20a28 28 0 0 1-18 8 28 28 0 0 1-18-8V96z'/%3E%3Cpath d='M146 88v-10'/%3E%3Ccircle cx='146' cy='74' r='4'/%3E%3C/g%3E%3C/svg%3E");
  animation: hayole-drift 28s linear infinite;
}

.hayole-float {
  position: fixed;
  z-index: 0;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  animation: hayole-bob 7s ease-in-out infinite;
}

.hayole-float.one { top: 12%; left: 8%; }
.hayole-float.two { top: 70%; left: 6%; animation-delay: -2s; }
.hayole-float.three { top: 18%; right: 8%; animation-delay: -3s; }

body.hayole-login {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.hayole-login .login {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 32px));
  max-width: 980px;
  margin: 24px auto;
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
  animation: hayole-card 0.7s ease both;
}

body.hayole-login .login-group {
  align-items: stretch;
  min-height: 560px;
}

body.hayole-login .login-content {
  padding: 42px 36px;
}

body.hayole-login .login-content h3 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #312e81, #0f766e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.hayole-login .login-content p {
  color: #64748b;
  margin-bottom: 22px;
}

body.hayole-login .login-content .form-control {
  height: 48px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  box-shadow: none;
}

body.hayole-login .login-content .form-control:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.16);
  background: #fff;
}

body.hayole-login .login-content .btn-inline,
body.hayole-login .login-content button[type="submit"] {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: none;
  background-image: linear-gradient(90deg, #4338ca, #0f766e);
  background-size: 160% 160%;
  animation: hayole-shift 8s ease infinite;
  transition: transform 0.2s ease;
}

body.hayole-login .login-content button[type="submit"]:hover {
  transform: translateY(-2px);
  color: #fff;
}

body.hayole-login .forgotPass {
  color: #4338ca;
  font-weight: 700;
}

body.hayole-login .login-banner {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(160deg, #312e81, #0f766e);
}

body.hayole-login .login-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}

body.hayole-login .login-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 27, 75, 0.25) 20%, rgba(30, 27, 75, 0.82) 100%);
}

body.hayole-login .login-banner > div,
body.hayole-login .login-banner div {
  position: absolute !important;
  z-index: 2;
  left: 22px !important;
  right: 22px !important;
  bottom: 22px !important;
  width: auto !important;
  transform: none !important;
  padding: 18px 18px 14px !important;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff !important;
  backdrop-filter: blur(8px);
}

body.hayole-login .login-banner blockquote {
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  font-style: italic;
  line-height: 1.45;
  text-align: left !important;
  border: 0;
  margin: 0 0 10px !important;
}

body.hayole-login .login-banner label {
  display: block;
  color: #fde68a !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-align: right !important;
}

@keyframes hayole-card {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes hayole-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes hayole-drift {
  from { background-position: 0 0; }
  to { background-position: 180px 180px; }
}

@keyframes hayole-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body.hayole-reset .hayole-reset-card {
  position: relative;
  z-index: 1;
  width: min(440px, calc(100% - 32px));
  margin: 24px auto;
  padding: 28px 28px 22px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
}

body.hayole-reset .hayole-reset-brand {
  text-align: center;
}

body.hayole-reset .hayole-reset-brand img {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
  object-fit: contain;
  border-radius: 24px;
  background: #f8fafc;
}

body.hayole-reset .hayole-reset-brand h4,
body.hayole-reset .login-form h5 {
  margin: 0 0 6px;
  color: #1e1b4b;
  font-weight: 800;
  text-align: center;
}

body.hayole-reset .login-form .form-control {
  height: 48px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  box-shadow: none;
}

body.hayole-reset .login-form .form-control:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.16);
  background: #fff;
}

body.hayole-reset .login-form button[type="submit"],
body.hayole-reset .btn-inline {
  width: 100%;
  height: 50px;
  margin-top: 8px;
  border: 0 !important;
  border-radius: 14px !important;
  color: #fff !important;
  font-weight: 800;
  background: linear-gradient(90deg, #4338ca, #0f766e) !important;
  background-color: #4338ca !important;
}

body.hayole-reset .hayole-back {
  display: block;
  margin-top: 16px;
  text-align: center;
  color: #4338ca;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 767px) {
  .hayole-float { display: none; }
  body.hayole-login .login { margin: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  body.hayole-login::before,
  .hayole-float,
  body.hayole-login .login,
  body.hayole-login .login-content button[type="submit"] {
    animation: none;
  }
}
