:root {
  --bg-light: #ffffff;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --text-main: #0f172a;
  --text-muted: #64748b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  background-color: var(--bg-light);
  color: var(--text-main);
  display: flex;
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: 0;
}

.login-header-bar {
  position: absolute;
  top: 30px;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 20px;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: #64748b;
  background: transparent;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 12px;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-link:hover {
  background: rgba(15, 59, 96, 0.08);
  color: #0F3B60;
  transform: translateY(-2px);
}

.header-link i {
  font-size: 1.15rem;
  color: #0F3B60;
}

.dt-link img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(15, 59, 96, 0.2);
  opacity: 0.8;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dt-link:hover img {
  opacity: 1;
  border-color: rgba(15, 59, 96, 0.4);
}

.left-panel {
  flex: 1.2;
  position: relative;
  background: var(--bg-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
  overflow: hidden;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.brand-content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 600px;
  text-align: left;
  pointer-events: none;
}

.brand-logo {
  height: 48px;
  margin-bottom: 30px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #000;
  margin-bottom: 24px;
}

.word-rotator {
  display: block;
  position: relative;
  height: 1.1em;
  overflow: hidden;
  margin-top: 5px;
}

.word-rotator-inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.55s ease;
  will-change: transform;
}

.word-rotator span {
  height: 1.1em;
  padding: 0 4px;
  background: linear-gradient(135deg, #1d4ed8 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 400;
  max-width: 90%;
}

.right-panel {
  flex: 0.8;
  min-width: 450px;
  max-width: 550px;
  background: linear-gradient(150deg, #0A192F 0%, #0F3B60 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  position: relative;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.login-container {
  width: 100%;
  max-width: 400px;
  animation: appear 0.6s ease-out forwards;
  position: relative;
  z-index: 15;
  background: #ffffff;
  padding: 40px 32px;
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.login-header {
  margin-bottom: 24px;
}

.login-header h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 8px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color 0.3s;
}

.form-control {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.password-group {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #475569;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.password-group .form-control {
  padding-right: 42px;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.form-group:focus-within .form-label {
  color: var(--primary);
}

.remember-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.btn-submit {
  width: 100%;
  background: #0F3B60;
  color: white;
  border: none;
  border-radius: 40px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-submit:hover {
  background: #1D4A7A;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 59, 96, 0.3);
}

.btn-submit.loading {
  color: transparent;
  pointer-events: none;
}

.btn-submit.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}

.forgot-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  cursor: pointer;
}

.forgot-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.recaptcha-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  body {
    display: block;
    overflow-y: auto;
    padding-top: 0;
    background-color: #0A192F;
  }

  .right-panel {
    width: 100%;
    max-width: 100%;
    min-width: auto;
    min-height: 100vh;
    justify-content: flex-start;
    box-shadow: none;
    padding-top: 90px;
    padding-bottom: 50px;
    overflow-y: auto;
  }

  .left-panel {
    display: none;
  }

  .login-header-bar {
    top: 20px;
    gap: 10px;
    padding: 0 10px;
  }

  .header-link {
    font-size: .8rem;
    padding: 6px 10px;
  }
}