: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: 15px;
  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: 48px;
  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: 150px;
  height: auto;
  display: block;
  padding: 4px 8px;
  border-radius: 8px;
  background: white;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.ui-alert {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 13px 16px;
  border: 1.5px solid #dbeafe;
  border-left-width: 4px;
  border-radius: 8px;
  background: white;
  color: var(--primary);
  box-shadow: 0 10px 24px rgba(26, 58, 110, 0.06);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

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

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

.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: 18px;
}

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

.form-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  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: 48px;
}

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

.form-input-icon svg {
  width: 18px;
  height: 18px;
  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: 22px;
}

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

.btn-login {
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, transform 0.1s, box-shadow 0.15s;
  margin-bottom: 24px;
  box-shadow: 0 12px 22px 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: 12px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
}

.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: 14px;
  padding: 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
}

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

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

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

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

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

  .login-left {
    padding: 32px 24px;
    gap: 36px;
  }

  .login-right {
    padding: 36px 24px;
  }

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