:root {
  --primary: #1a3a6e;
  --primary-light: #2451a3;
  --accent: #f5a623;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
}

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

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  background: var(--gray-50);
}

.login-left {
  width: 50%;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(10, 30, 61, 0.94) 0%, rgba(26, 58, 110, 0.86) 60%, rgba(13, 42, 90, 0.92) 100%),
    url("../img/hero-login.png") center / cover no-repeat,
    linear-gradient(135deg, #0a1e3d 0%, #1a3a6e 60%, #0d2a5a 100%);
  padding: 43.2px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.login-logo img {
  width: 135px;
  height: auto;
  display: block;
  padding: 4px 8px;
  border-radius: 8px;
  background: white;
}

.login-logo-company {
  color: rgba(255,255,255,0.8);
  font-size: 9.9px;
  font-weight: 500;
}

.login-hero {
  position: relative;
  z-index: 1;
}

.login-tag {
  color: var(--accent);
  font-size: 9.9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10.8px;
}

.login-title {
  color: white;
  font-size: 28.8px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.login-subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 12.6px;
  margin-bottom: 36px;
}

.login-divider {
  width: 43.2px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 28.8px;
  border-radius: 2px;
}

.login-desc {
  color: rgba(255,255,255,0.7);
  font-size: 11.7px;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 477px;
}

.login-values {
  display: flex;
  flex-direction: column;
  gap: 14.4px;
}

.login-value {
  display: flex;
  align-items: flex-start;
  gap: 12.6px;
}

.login-value-icon {
  width: 37.8px;
  height: 37.8px;
  border-radius: 9px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-value-icon svg {
  width: 18px;
  height: 18px;
}

.login-value-title {
  color: var(--accent);
  font-size: 11.7px;
  font-weight: 700;
  margin-bottom: 2px;
}

.login-value-desc {
  color: rgba(255,255,255,0.6);
  font-size: 10.8px;
}

.login-rodamas {
  display: flex;
  align-items: center;
  gap: 10.8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9px;
  padding: 12.6px 16.2px;
  position: relative;
  z-index: 1;
  width: fit-content;
}

.login-rodamas-text {
  color: rgba(255,255,255,0.6);
  font-size: 9.9px;
}

.login-rodamas-brand {
  color: var(--accent);
  font-size: 12.6px;
  font-weight: 800;
  letter-spacing: 1px;
}

.login-rodamas-small {
  color: rgba(255,255,255,0.5);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
}

.login-right {
  width: 50%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 43.2px;
  background: white;
}

.login-form-wrap {
  width: 100%;
  max-width: 378px;
}

.login-form-icon {
  width: 52.2px;
  height: 52.2px;
  background: #eef4ff;
  color: var(--primary);
  border-radius: 12.6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 21.6px;
}

.login-form-title {
  font-size: 23.4px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.login-form-sub {
  color: var(--primary);
  font-size: 12.6px;
  font-weight: 600;
  margin-bottom: 27px;
}

.ui-alert {
  min-height: 48.6px;
  display: flex;
  align-items: center;
  gap: 10.8px;
  margin-bottom: 18px;
  padding: 11.7px 14.4px;
  border: 1.5px solid #dbeafe;
  border-left-width: 4px;
  border-radius: 8px;
  background: white;
  color: var(--primary);
  box-shadow: 0 9px 21.6px rgba(26, 58, 110, 0.06);
  font-size: 12.6px;
  font-weight: 800;
  line-height: 1.45;
}

.ui-alert-icon {
  width: 25.2px;
  height: 25.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef4ff;
  color: var(--primary);
  flex: 0 0 25.2px;
}

.ui-alert-icon svg {
  width: 14.4px;
  height: 14.4px;
}

.ui-alert-danger {
  border-color: #fecaca;
  border-left-color: #ef233c;
  color: #dc2626;
}

.ui-alert-danger .ui-alert-icon {
  background: #fee2e2;
  color: #ef233c;
}

.form-group {
  margin-bottom: 16.2px;
}

.form-label {
  display: block;
  font-size: 11.7px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  height: 41.4px;
  padding: 0 12.6px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 12.6px;
  font-family: inherit;
  color: var(--primary);
  font-weight: 700;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: none;
}

.form-input::placeholder {
  color: var(--primary);
  opacity: 0.62;
  font-weight: 700;
}

.form-input-wrap {
  position: relative;
}

.form-input-wrap .form-input {
  padding-right: 43.2px;
}

.form-input-icon {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28.8px;
  height: 28.8px;
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
}

.form-input-icon svg {
  width: 16.2px;
  height: 16.2px;
  stroke-width: 2.1;
}

.password-toggle {
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.password-toggle:hover {
  background: var(--gray-50);
  color: var(--primary);
}

.login-forgot {
  text-align: right;
  margin-top: -6px;
  margin-bottom: 19.8px;
}

.login-forgot a {
  color: var(--primary);
  font-size: 11.7px;
  font-weight: 800;
}

.btn-login {
  width: 100%;
  min-height: 41.4px;
  padding: 0 16.2px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 12.6px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background 0.2s, transform 0.1s, box-shadow 0.15s;
  margin-bottom: 21.6px;
  box-shadow: 0 10.8px 19.8px rgba(26, 58, 110, 0.18);
}

.btn-login:hover {
  background: var(--primary-light);
}

.btn-login:active {
  transform: scale(0.99);
}

.login-divider-line {
  display: flex;
  align-items: center;
  gap: 10.8px;
  color: var(--gray-500);
  font-size: 10.8px;
  font-weight: 700;
  margin-bottom: 18px;
}

.login-divider-line::before,
.login-divider-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.login-secure {
  display: flex;
  align-items: center;
  gap: 12.6px;
  padding: 14.4px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
}

.login-secure-text {
  font-size: 11.7px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}

.login-secure-sub {
  font-size: 10.8px;
  color: var(--gray-500);
  font-weight: 600;
}

.login-footer {
  text-align: center;
  margin-top: 21.6px;
  color: var(--gray-400);
  font-size: 10.8px;
}

@media (max-width: 900px) {
  .login-page {
    flex-direction: column;
  }

  .login-left,
  .login-right {
    width: 100%;
    min-height: auto;
  }

  .login-left {
    padding: 28.8px 21.6px;
    gap: 32.4px;
  }

  .login-right {
    padding: 32.4px 21.6px;
  }

  .login-title {
    font-size: 25.2px;
  }
}

.forgot-card {
  max-width: 468px;
}

.forgot-icon {
  background: #eef4ff;
}

.forgot-contact-list {
  display: grid;
  gap: 10.8px;
  margin: 19.8px 0;
}

.forgot-contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14.4px;
  padding: 14.4px;
  border: 1.5px solid var(--gray-200);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 9px 21.6px rgba(26, 58, 110, 0.06);
}

.forgot-contact-name {
  color: var(--primary);
  font-size: 12.6px;
  font-weight: 800;
  margin-bottom: 4px;
}

.forgot-contact-role {
  color: var(--gray-500);
  font-size: 10.8px;
  font-weight: 700;
  margin-bottom: 8px;
}

.forgot-contact-phone {
  color: var(--primary-dark);
  font-size: 11.7px;
  font-weight: 800;
}

.forgot-wa-btn {
  min-height: 37.8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14.4px;
  border-radius: 8px;
  background: #25d366;
  color: #fff;
  font-size: 10.8px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 9px 18px rgba(37, 211, 102, 0.24);
}

.forgot-wa-btn:hover {
  background: #1ebe5d;
}

.forgot-wa-btn svg {
  width: 17.1px;
  height: 17.1px;
  flex: 0 0 auto;
}

.forgot-wa-disabled {
  color: var(--gray-400);
  font-size: 10.8px;
  font-weight: 800;
}

.forgot-back-link {
  min-height: 39.6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  color: var(--primary);
  background: #fff;
  font-size: 11.7px;
  font-weight: 800;
  text-decoration: none;
}

.forgot-back-link:hover {
  border-color: var(--primary);
  background: #f4f8ff;
}

.forgot-back-link svg {
  width: 14.4px;
  height: 14.4px;
}

@media (max-width: 560px) {
  .forgot-contact-card {
    grid-template-columns: 1fr;
  }

  .forgot-wa-btn {
    width: 100%;
  }
}
