/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 16px;
  line-height: 1.5;
  color: #020817;
  background-color: #ffffff;
}

/* HR Management Color Variables */
:root {
  --hr-slate-50: #f8fafc;
  --hr-slate-100: #f1f5f9;
  --hr-slate-200: #e2e8f0;
  --hr-slate-300: #cbd5e1;
  --hr-slate-400: #94a3b8;
  --hr-slate-500: #64748b;
  --hr-slate-600: #475569;
  --hr-slate-700: #334155;
  --hr-slate-800: #1e293b;
  --hr-slate-900: #0f172a;
  --hr-slate-950: #020617;
}

/* Main Container */
.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.login-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#a2ceff99, #d1e7ff1c),
    url('../images/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(3px);
  z-index: -1;
}
/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.form-wrapper {
  width: 100%;
  max-width: 448px;
}

/* Header Section */
.header-section {
  text-align: center;
  margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 16px;
  padding: 24px;
}

.logo-container {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04))
    drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1));
}

.title {
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  color: var(--hr-slate-900);
  margin-bottom: 8px;
}

.subtitle {
  font-size: 18px;
  line-height: 28px;
  color: var(--hr-slate-600);
}

/* Form Container */
.form-container {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border-radius: 16px;
  border: 1px solid var(--hr-slate-200);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 32px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Field Groups */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  color: var(--hr-slate-700);
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
}

/* Input Wrapper */
.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--hr-slate-400);
  z-index: 1;
}

/* Form Inputs */
.form-input {
  display: flex;
  width: 100%;
  height: 48px;
  border-radius: 6px;
  border: 1px solid var(--hr-slate-200);
  background-color: #ffffff;
  padding: 8px 12px 8px 40px;
  font-size: 14px;
  line-height: 20px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--hr-slate-400);
  box-shadow: 0 0 0 2px rgba(71, 85, 105, 0.1);
}

.form-input::placeholder {
  color: var(--hr-slate-400);
}

.password-input {
  padding-right: 40px;
}

/* Password Toggle */
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--hr-slate-400);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.password-toggle:hover {
  color: var(--hr-slate-600);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.hidden {
  display: none !important;
}

/* Select Wrapper */
.select-wrapper {
  position: relative;
}

.form-select {
  appearance: none;
  display: flex;
  width: 100%;
  height: 48px;
  border-radius: 6px;
  border: 1px solid var(--hr-slate-200);
  background-color: #ffffff;
  padding: 8px 40px 8px 40px;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-select:focus {
  outline: none;
  border-color: var(--hr-slate-400);
  box-shadow: 0 0 0 2px rgba(71, 85, 105, 0.1);
}

.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--hr-slate-400);
  pointer-events: none;
}

/* Login Button */
.login-button {
  width: 100%;
  height: 48px;
  background: linear-gradient(
    to right,
    var(--hr-slate-800),
    var(--hr-slate-900)
  );
  color: white;
  font-weight: 600;
  font-size: 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
  transform: scale(1);
}

.login-button:hover {
  background: linear-gradient(
    to right,
    var(--hr-slate-900),
    var(--hr-slate-950)
  );
  transform: scale(1.02);
}

.login-button:active {
  transform: scale(0.98);
}

/* Form Footer */
.form-footer {
  margin-top: 24px;
  text-align: center;
}

.forgot-password {
  color: var(--hr-slate-600);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.forgot-password:hover {
  color: var(--hr-slate-800);
}

/* Help Text */
.help-text {
  margin-top: 5px;
  text-align: center;
}

.help-text p {
  font-size: 14px;
  color: var(--hr-slate-500);
}

@media (max-width: 640px) {
  .help-text p {
    color: rgba(255, 255, 255, 1);
  }
}

/* Footer */
.page-footer {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-top: 1px solid var(--hr-slate-200);
  padding: 15px 0;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

.footer-text {
  color: var(--hr-slate-600);
  font-weight: 500;
  margin-bottom: 4px;
}

.footer-subtext {
  color: var(--hr-slate-500);
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 640px) {
  .main-content {
    padding: 16px;
  }

  .form-container {
    padding: 24px;
  }

  .title {
    font-size: 24px;
    line-height: 32px;
  }

  .subtitle {
    font-size: 16px;
    line-height: 24px;
  }

  .login-button {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .header-section,
  .form-container {
    padding: 20px;
  }

  .form-input,
  .form-select,
  .login-button {
    height: 44px;
  }

  .title {
    font-size: 22px;
  }
}

/* Animation for form validation */
.form-input.error,
.form-select.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

.form-input.error:focus,
.form-select.error:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Loading state */
.login-button.loading {
  opacity: 0.7;
  cursor: not-allowed;
  transform: scale(1);
}

.login-button.loading:hover {
  transform: scale(1);
}

/* #login-page {
    display: none;
} */

#intro-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/*snow falling css*/
.snowflakes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.snowflakes span {
  position: absolute;
  top: -10%;
  color: white;
  opacity: 0.9;
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/*snow falling css*/
/* Quantity + Speed + Size */
.snowflakes span:nth-child(1)  { left: 2%;  font-size: 1em; animation-duration: 5s; }
.snowflakes span:nth-child(2)  { left: 6%;  font-size: 1.5em; animation-duration: 6s; }
.snowflakes span:nth-child(3)  { left: 10%; font-size: 2em; animation-duration: 4s; }
.snowflakes span:nth-child(4)  { left: 14%; font-size: 1.2em; animation-duration: 7s; }
.snowflakes span:nth-child(5)  { left: 18%; font-size: 1.8em; animation-duration: 5s; }
.snowflakes span:nth-child(6)  { left: 22%; font-size: 1.4em; animation-duration: 6s; }
.snowflakes span:nth-child(7)  { left: 26%; font-size: 1em; animation-duration: 4.5s; }
.snowflakes span:nth-child(8)  { left: 30%; font-size: 2.2em; animation-duration: 7s; }
.snowflakes span:nth-child(9)  { left: 34%; font-size: 1.3em; animation-duration: 5.5s; }
.snowflakes span:nth-child(10) { left: 38%; font-size: 1.7em; animation-duration: 6.5s; }
.snowflakes span:nth-child(11) { left: 42%; font-size: 2em; animation-duration: 4.8s; }
.snowflakes span:nth-child(12) { left: 46%; font-size: 1.1em; animation-duration: 7.5s; }
.snowflakes span:nth-child(13) { left: 50%; font-size: 1.9em; animation-duration: 5s; }
.snowflakes span:nth-child(14) { left: 54%; font-size: 1.3em; animation-duration: 6s; }
.snowflakes span:nth-child(15) { left: 58%; font-size: 2.1em; animation-duration: 4s; }
.snowflakes span:nth-child(16) { left: 62%; font-size: 1.6em; animation-duration: 7s; }
.snowflakes span:nth-child(17) { left: 66%; font-size: 1em; animation-duration: 5.5s; }
.snowflakes span:nth-child(18) { left: 70%; font-size: 2em; animation-duration: 6.8s; }
.snowflakes span:nth-child(19) { left: 74%; font-size: 1.2em; animation-duration: 4.2s; }
.snowflakes span:nth-child(20) { left: 78%; font-size: 1.8em; animation-duration: 7.2s; }
.snowflakes span:nth-child(21) { left: 82%; font-size: 2.2em; animation-duration: 5s; }
.snowflakes span:nth-child(22) { left: 86%; font-size: 1.4em; animation-duration: 6s; }
.snowflakes span:nth-child(23) { left: 90%; font-size: 1em; animation-duration: 4.5s; }
.snowflakes span:nth-child(24) { left: 94%; font-size: 1.7em; animation-duration: 6.5s; }

@keyframes fall {
  0% {
    transform: translateY(-10vh) translateX(0) rotate(0deg);
  }
  100% {
    transform: translateY(110vh) translateX(40px) rotate(360deg);
  }
}