/* ============================================================
   EKCEL PAYROLL HRMS - Login Page Styles
   ============================================================ */

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

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  background: #0F172A;
  overflow: hidden;
  position: relative;
}

/* Animated background */
.login-bg {
  position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 50%, #0F172A 100%);
}

.login-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 20% 20%, rgba(37,99,235,.15) 0%, transparent 60%),
              radial-gradient(ellipse 60% 60% at 80% 80%, rgba(124,58,237,.12) 0%, transparent 60%);
}

/* Floating blobs */
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .12;
  animation: float 8s ease-in-out infinite;
}
.blob-1 { width: 500px; height: 500px; background: #2563EB; top: -100px; left: -100px; animation-delay: 0s; }
.blob-2 { width: 400px; height: 400px; background: #7C3AED; bottom: -100px; right: -50px; animation-delay: -3s; }
.blob-3 { width: 300px; height: 300px; background: #0891B2; top: 50%; right: 20%; animation-delay: -6s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* Grid pattern */
.grid-pattern {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Main layout */
.login-wrapper {
  position: relative; z-index: 1;
  display: flex; width: 100%; min-height: 100vh;
}

/* Left branding panel */
.login-branding {
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 60px;
  max-width: 55%;
}

.brand-logo {
  display: flex; align-items: center; gap: 14px; margin-bottom: 60px;
}

.brand-logo-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; font-weight: 800;
  box-shadow: 0 8px 24px rgba(37,99,235,.4);
}

.brand-logo-text h1 { font-size: 20px; font-weight: 800; color: #fff; }
.brand-logo-text span { font-size: 12px; color: rgba(255,255,255,.4); font-weight: 400; }

.brand-headline {
  font-size: 42px; font-weight: 800; color: #fff;
  line-height: 1.15; margin-bottom: 20px;
}

.brand-headline span { color: #60A5FA; }

.brand-subtitle { font-size: 16px; color: rgba(255,255,255,.5); line-height: 1.7; margin-bottom: 48px; max-width: 420px; }

.brand-features { display: flex; flex-direction: column; gap: 16px; }
.brand-feature {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 14px 18px;
  backdrop-filter: blur(8px);
}
.brand-feature-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(37,99,235,.25); color: #60A5FA;
  display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.brand-feature-text h4 { font-size: 14px; font-weight: 600; color: #fff; }
.brand-feature-text p { font-size: 12px; color: rgba(255,255,255,.4); }

/* Right login form */
.login-form-panel {
  width: 480px; min-width: 480px;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255,255,255,.08);
}

.login-form-box {
  width: 100%; max-width: 380px;
}

.login-form-header { margin-bottom: 32px; }
.login-form-header h2 { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.login-form-header p { font-size: 14px; color: rgba(255,255,255,.4); }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6); margin-bottom: 8px; }

.input-wrap { position: relative; }
.input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.3); font-size: 15px;
}

.login-input {
  width: 100%; padding: 13px 16px 13px 44px;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: #fff; font-size: 14px; font-family: 'Inter', sans-serif;
  outline: none; transition: all .2s;
}

.login-input::placeholder { color: rgba(255,255,255,.25); }
.login-input:focus { border-color: #2563EB; background: rgba(37,99,235,.1); box-shadow: 0 0 0 3px rgba(37,99,235,.2); }

.password-toggle {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.3); cursor: pointer; font-size: 15px;
  background: none; border: none; padding: 4px;
}
.password-toggle:hover { color: rgba(255,255,255,.6); }

.login-options { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.remember-me { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.remember-me input[type="checkbox"] { width: 16px; height: 16px; accent-color: #2563EB; cursor: pointer; }
.remember-me span { font-size: 13px; color: rgba(255,255,255,.5); }
.forgot-link { font-size: 13px; color: #60A5FA; text-decoration: none; font-weight: 500; }
.forgot-link:hover { color: #93C5FD; }

.login-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #fff; border: none; border-radius: 10px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 8px 24px rgba(37,99,235,.4);
  transition: all .2s;
  margin-bottom: 16px;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(37,99,235,.5); }
.login-btn:active { transform: translateY(0); }
.login-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.login-hint {
  text-align: center; font-size: 12px;
  background: rgba(37,99,235,.15); border: 1px solid rgba(37,99,235,.3);
  border-radius: 8px; padding: 10px 16px; color: rgba(255,255,255,.5);
  margin-top: 12px;
}
.login-hint strong { color: #60A5FA; }

.login-error {
  background: rgba(220,38,38,.15); border: 1px solid rgba(220,38,38,.3);
  border-radius: 8px; padding: 10px 14px;
  color: #FCA5A5; font-size: 13px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
  display: none;
}

.login-footer { text-align: center; margin-top: 32px; color: rgba(255,255,255,.2); font-size: 12px; }

/* Mobile */
@media (max-width: 768px) {
  .login-branding { display: none; }
  .login-form-panel { min-width: auto; width: 100%; border-left: none; }
  .login-wrapper { justify-content: center; }
}
