/* ==================================================
   SIVIKA HOME - DESIGN SYSTEM
================================================== */

:root {
  --sivika-navy: #102f63;
  --sivika-navy-dark: #0b2045;
  --sivika-navy-light: #1e477f;

  --sivika-blue: #0756a8;
  --sivika-blue-hover: #064785;

  --sivika-gold: #ffc400;
  --sivika-gold-accent: #f59e0b;
  --sivika-gold-light: #fff4cc;

  --sivika-bg: #f5f8fc;
  --sivika-white: #ffffff;

  --sivika-text: #1e293b;
  --sivika-muted: #64748b;
  --sivika-border: #e2e8f0;

  --sivika-radius: 18px;

  --sivika-shadow: 0 12px 35px rgba(16, 47, 99, 0.07);
}

/* ==================================================
   GLOBAL
================================================== */

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

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: var(--sivika-bg);
  color: var(--sivika-text);
  min-height: 100vh;
}

a {
  text-decoration: none;
}

.sivika-home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==================================================
   NAVBAR
================================================== */

.home-navbar {
  background: var(--sivika-white);
  border-bottom: 1px solid var(--sivika-border);
  position: relative;
  z-index: 10;
}

.navbar-content {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

/* .brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--sivika-navy);
  color: var(--sivika-gold);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 25px;
  box-shadow: 0 5px 14px rgba(16, 47, 99, 0.15);
} */

/* =====================================================
   BRAND LOGO IMAGE
===================================================== */

.brand-logo {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 14px;
  overflow: hidden;

  background: transparent;

  box-shadow: 0 5px 14px rgba(16, 47, 99, 0.1);
}

.brand-logo img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;
  object-position: center;

  padding: 2px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--sivika-navy);
}

.brand-subtitle {
  color: var(--sivika-muted);
  font-size: 10px;
  font-weight: 500;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 8px;

  color: var(--sivika-muted);
  font-size: 12px;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sivika-green, #16a34a);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}

/* ==================================================
   HERO SECTION
================================================== */

.hero-section {
  position: relative;
  overflow: hidden;
  flex: 1;

  padding: 70px 0 65px;

  background:
    radial-gradient(circle at 10% 15%, rgba(7, 86, 168, 0.06), transparent 28%),
    radial-gradient(
      circle at 90% 30%,
      rgba(255, 196, 0, 0.09),
      transparent 25%
    ),
    var(--sivika-bg);
}

.hero-decoration {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.decoration-one {
  width: 280px;
  height: 280px;
  border: 1px solid rgba(16, 47, 99, 0.06);
  top: -120px;
  right: -70px;
}

.decoration-two {
  width: 200px;
  height: 200px;
  border: 1px solid rgba(255, 196, 0, 0.18);
  bottom: 30px;
  left: -100px;
}

/* ==================================================
   HERO CONTENT
================================================== */

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 55px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 15px;
  border-radius: 30px;

  background: rgba(7, 86, 168, 0.07);
  color: var(--sivika-blue);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.hero-label-icon {
  color: var(--sivika-gold-accent);
  font-size: 15px;
}

.hero-content h1 {
  margin: 23px 0 16px;

  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;

  font-weight: 800;
  letter-spacing: -1.5px;

  color: var(--sivika-navy-dark);
}

.hero-content h1 span {
  color: var(--sivika-blue);
}

.hero-description {
  max-width: 650px;
  margin: auto;

  color: var(--sivika-muted);
  font-size: 14px;
  line-height: 1.9;
}

/* ==================================================
   LOGIN SECTION
================================================== */

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

.section-heading {
  text-align: center;
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: 21px;
  font-weight: 800;
  color: var(--sivika-navy);
  margin-bottom: 9px;
}

.section-heading p {
  font-size: 13px;
  color: var(--sivika-muted);
  margin: 0;
}

/* ==================================================
   LOGIN CARD
================================================== */

.login-card {
  display: flex;
  flex-direction: column;

  min-height: 285px;
  height: 100%;

  background: var(--sivika-white);
  border: 1px solid var(--sivika-border);
  border-radius: var(--sivika-radius);

  padding: 25px;

  color: var(--sivika-text);

  box-shadow: var(--sivika-shadow);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;

  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;

  left: 0;
  top: 0;

  width: 100%;
  height: 4px;

  background: var(--card-accent);
}

.login-card:hover {
  transform: translateY(-7px);

  box-shadow: 0 20px 45px rgba(16, 47, 99, 0.13);

  border-color: var(--card-accent);
  color: var(--sivika-text);
}

.card-internal {
  --card-accent: var(--sivika-navy);
}

.card-uml {
  --card-accent: var(--sivika-blue);
}

.card-non-uml {
  --card-accent: var(--sivika-gold-accent);
}

/* CARD TOP */

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 27px;
}

.card-icon {
  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;

  font-size: 26px;

  background: var(--icon-bg);
  color: var(--card-accent);
}

.card-internal .card-icon {
  --icon-bg: #e8eef8;
}

.card-uml .card-icon {
  --icon-bg: #e7f1fc;
}

.card-non-uml .card-icon {
  --icon-bg: var(--sivika-gold-light);
}

.card-number {
  font-size: 26px;
  font-weight: 800;

  color: #e8edf4;
}

/* CARD CONTENT */

.card-category {
  display: block;

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 1.3px;

  color: var(--card-accent);

  margin-bottom: 9px;
}

.card-content h3 {
  font-size: 19px;
  font-weight: 800;

  color: var(--sivika-navy-dark);

  margin-bottom: 11px;
}

.card-content p {
  font-size: 12px;
  line-height: 1.8;

  color: var(--sivika-muted);

  margin-bottom: 22px;
}

/* CARD FOOTER */

.card-footer {
  margin-top: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-size: 12px;
  font-weight: 700;

  color: var(--card-accent);

  padding-top: 15px;

  border-top: 1px solid #f0f3f8;
}

.card-arrow {
  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--card-accent);
  color: #ffffff;

  transition: transform 0.3s ease;
}

.card-non-uml .card-arrow {
  color: var(--sivika-navy-dark);
}

.login-card:hover .card-arrow {
  transform: translateX(5px);
}

/* ==================================================
   INFORMATION SECTION
================================================== */

.information-section {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: flex-start;
  gap: 15px;

  max-width: 800px;

  margin: 42px auto 0;
  padding: 20px 23px;

  background: rgba(255, 255, 255, 0.8);

  border: 1px solid var(--sivika-border);
  border-radius: 14px;
}

.information-icon {
  width: 35px;
  height: 35px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--sivika-gold-light);
  color: #a87900;

  border-radius: 10px;
  font-size: 17px;
}

.information-section strong {
  display: block;

  color: var(--sivika-navy);
  font-size: 12px;

  margin-bottom: 5px;
}

.information-section p {
  margin: 0;

  color: var(--sivika-muted);
  font-size: 11px;
  line-height: 1.8;
}

/* ==================================================
   FOOTER
================================================== */

.home-footer {
  background: var(--sivika-white);
  border-top: 1px solid var(--sivika-border);

  padding: 20px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;
}

.footer-content > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-content strong {
  font-size: 13px;
  color: var(--sivika-navy);
}

.footer-content span,
.footer-right {
  color: var(--sivika-muted);
  font-size: 10px;
}

/* ==================================================
   ANIMATION
================================================== */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeUp 0.6s ease both;
}

.login-card {
  animation: fadeUp 0.7s ease both;
}

.login-card:nth-child(2) {
  animation-delay: 0.1s;
}

.login-card:nth-child(3) {
  animation-delay: 0.2s;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 991px) {
  .hero-section {
    padding: 55px 0;
  }

  .hero-content {
    margin-bottom: 45px;
  }

  .login-card {
    min-height: 275px;
  }
}

@media (max-width: 767px) {
  .navbar-content {
    min-height: 72px;
  }

  .brand-logo {
    width: 43px;
    height: 43px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-subtitle {
    font-size: 8px;
  }

  .system-status {
    font-size: 10px;
  }

  .hero-section {
    padding: 45px 0 35px;
  }

  .hero-content {
    margin-bottom: 38px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-description {
    font-size: 12px;
  }

  .section-heading h2 {
    font-size: 19px;
  }

  .login-card {
    min-height: 250px;
    padding: 22px;
  }

  .card-top {
    margin-bottom: 20px;
  }

  .information-section {
    margin-top: 30px;
    padding: 16px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .system-status {
    font-size: 0;
  }

  .status-dot {
    width: 9px;
    height: 9px;
  }

  .hero-content h1 {
    font-size: 28px;
  }
}

/* ==================================================
   ACCESSIBILITY
================================================== */

.login-card:focus-visible {
  outline: 3px solid var(--sivika-gold);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
