:root {
  --primary: #0f3d5e;
  --primary-light: #1f5f8b;
  --accent: #3ba4ff;
  --background: #f4f7fb;
  --text: #1f2937;
  --text-light: #6b7280;
  --white: #ffffff;
  --border: #dbe4ee;
  --shadow: 0 15px 40px rgba(15, 61, 94, 0.12);
  --radius: 24px;

  /* Adicione */
  --success: #22c55e;
  --danger: #ef4444;

  --bs-btn-bg: #0f3d5e;
  --bs-btn-border-color: #0f3d5e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--background);
  color: var(--text);
  overflow-x: hidden;
}

.login-wrapper {
  min-height: 100vh;
  display: flex;
}

/* LEFT SIDE */
.login-banner {
  flex: 1;
  position: relative;
  background:
    linear-gradient(135deg, rgba(15, 61, 94, 0.92), rgba(31, 95, 139, 0.88)),
    url("../images/background-login.jpg");

  background-size: cover;
  background-position: center;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  overflow: hidden;
}

.login-banner::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  top: -180px;
  right: -120px;
}

.login-banner::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  bottom: -120px;
  left: -80px;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.banner-title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.banner-description {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.banner-steps {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.step-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.step-text strong {
  display: block;
  font-size: 15px;
}

.step-text span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.banner-card {
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 28px;
}

.banner-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 22px;
}

.banner-card-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.banner-card-item:last-child {
  margin-bottom: 0;
}

.banner-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.banner-card-text strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.banner-card-text span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.banner-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.banner-stat {
  display: flex;
  flex-direction: column;
}

.banner-stat strong {
  font-size: 28px;
  font-weight: 700;
}

.banner-stat span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

/* RIGHT SIDE */
.login-side {
  width: 540px;
  max-width: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
}

.login-card {
  width: 100%;
  max-width: 400px;
}

.login-logo {
  text-align: center;
  margin-bottom: 25px;
}

.login-logo img {
  max-width: 220px;
  height: auto;
}

.login-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}

.login-subtitle {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 15px;
}

.error-code {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  color: var(--danger);
  margin-bottom: 16px;
  letter-spacing: -4px;
}

.error-icon {
  width: 100px;
  height: 100px;
  border-radius: 32px;
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.08),
    rgba(245, 158, 11, 0.08)
  );

  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.error-icon i {
  font-size: 36px;
  color: var(--danger);
}

.error-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.error-description {
  font-size: 15px;
  line-height: 1.2;
  color: var(--text-light);
  margin-bottom: 24px;
}

.error-message {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 20px;
  padding: 20px;
  font-size: 14px;
  line-height: 1.2;
  color: #9a3412;
  text-align: left;
  margin-bottom: 24px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  /* margin-bottom: 10px; */
  color: var(--text);
}

.input-modern {
  position: relative;
}

.input-modern .form-control {
  height: 44px;
  border-radius: 18px;
  border: 1px solid var(--border);
  padding-left: 54px;
  padding-right: 54px;
  font-size: 15px;
  box-shadow: none;
  transition: 0.2s ease;
}

.input-modern .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(59, 164, 255, 0.12);
}

.input-modern .icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #7b8ba1;
  font-size: 16px;
  z-index: 2;
  pointer-events: none;
}

.toggle-password {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #7b8ba1;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.password-rules {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 28px;
}

.password-rules-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--primary);
}

.rule-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 10px;
  transition: .2s ease;
}

.rule-item:last-child {
  margin-bottom: 0;
}

.rule-item i {
  font-size: 13px;
  transition: .2s ease;
}

.rule-item.valid {
  color: var(--success);
}

.rule-item.valid i {
  color: var(--success);
}

.rule-item.invalid {
  color: var(--danger);
}

.rule-item.invalid i {
  color: var(--danger);
}

.forgot-password {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: 0.2s ease;
}

.forgot-password:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.btn-primary {
  --bs-btn-bg: #0f3d5e;
  --bs-btn-border-color: #0f3d5e;

  --bs-btn-hover-bg: #0c324d;
  --bs-btn-hover-border-color: #0c324d;

  --bs-btn-active-bg: #09273d;
  --bs-btn-active-border-color: #09273d;

  --bs-btn-disabled-bg: #0f3d5e;
  --bs-btn-disabled-border-color: #0f3d5e;
}

.btn-submit {
  height: 48px;
  border-radius: 18px;
  font-weight: 600;
  font-size: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));

  border: 0;
  transition: 0.25s ease;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(15, 61, 94, 0.2);
}

.back-link {
  margin-top: 24px;
  text-align: center;
}

.back-link a {
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.back-link a:hover {
  text-decoration: underline;
}

.quick-links {
  margin-top: 19px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.quick-links .btn {
  border-radius: 16px;
  height: 44px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-login {
  margin-top: 25px;
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
}

.footer-login .developer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-login img {
  max-height: 30px;
}

.alert {
  border-radius: 16px;
  font-size: 14px;
}

.captcha-box {
  background: #f8fafc;
  border: 1px solid #e7edf5;
  border-radius: 20px;
  padding: 10px;
  margin-bottom: 24px;
}

.captcha-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
}

.captcha-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 767px) {
  .captcha-box {
    padding: 16px;
  }

  .captcha-image {
    margin-bottom: 12px;
  }
}

@media (max-width: 1200px) {
  .login-banner {
    padding: 40px;
  }

  .banner-title {
    font-size: 42px;
  }
}

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

  .login-banner {
    min-height: 320px;
    padding: 32px;
  }

  .login-side {
    width: 100%;
    padding: 40px 24px;
  }

  .banner-title {
    font-size: 34px;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .login-banner {
    padding: 28px 24px;
  }

  .login-side {
    padding: 32px 20px;
  }

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

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

  .banner-description {
    font-size: 16px;
  }
}
