:root {
  --sivika-primary: #102f63;
  --sivika-dark: #0b2045;
  --sivika-light: #1e477f;
  --sivika-blue: #0756a8;
  --sivika-gold: #ffc400;

  --sivika-bg: #f5f8fc;
  --sivika-white: #ffffff;
  --sivika-text: #1e293b;
  --sivika-muted: #64748b;
  --sivika-border: #e2e8f0;

  --sivika-danger: #dc2626;
  --sivika-success: #16a34a;
}

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

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

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 35px 20px;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 196, 0, 0.1), transparent 25%),
    radial-gradient(circle at 90% 90%, rgba(16, 47, 99, 0.08), transparent 30%),
    #f5f8fc;
}

.auth-container {
  width: 100%;
  max-width: 1050px;
}

/* MAIN CARD */

.auth-card {
  width: 100%;
  min-height: 650px;
  display: grid;
  grid-template-columns: 40% 60%;
  background: var(--sivika-white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(16, 47, 99, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* ===================================
   LEFT PANEL
=================================== */

.auth-left {
  position: relative;
  padding: 45px 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;

  background: linear-gradient(150deg, #0b2045 0%, #102f63 55%, #1e477f 100%);
}

.auth-left::before {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  top: -170px;
  right: -150px;
}

.auth-left::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  bottom: -120px;
  left: -120px;
}

.left-content {
  position: relative;
  z-index: 2;
}

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

.brand-logo {
  text-align: center;
  position: relative;
  z-index: 2;
}

/* LOGO CONTAINER */

/* =====================================================
   BRAND LOGO ICON - BACKGROUND
===================================================== */

.logo-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 15px;

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

  /* background: linear-gradient(135deg, #ffc400, #f0a900); */
  background: linear-gradient(135deg, #ffffff, #f3f1ef);

  border-radius: 20px;
  padding: 12px;

  box-shadow: 0 8px 20px rgba(255, 196, 0, 0.2);

  overflow: hidden;
}

/* LOGO IMAGE */
.logo-icon img {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: contain;
  object-position: center;
}

/* ============ */
/* 
.logo-icon {
  width: 76px;
  height: 76px;

  margin: 0 auto 15px;

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

  flex-shrink: 0;
  overflow: hidden;

  background: transparent;
  border-radius: 0;

  box-shadow: none;
} */

/* LOGO IMAGE */

/* .logo-icon img {
  width: 100%;
  height: 100%;

  display: block;

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

  padding: 0;
} */

/* BRAND NAME */

.brand-name {
  font-size: 33px;
  font-weight: 800;
  letter-spacing: 3px;
  color: white;
}

/* BRAND DESCRIPTION */

.brand-description {
  max-width: 260px;
  margin: 8px auto 0;

  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1.8;
}

.brand-name {
  font-size: 33px;
  font-weight: 800;
  letter-spacing: 3px;
  color: white;
}

.brand-description {
  max-width: 260px;
  margin: 8px auto 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1.8;
}

.left-divider {
  width: 55px;
  height: 4px;
  margin: 35px auto;
  border-radius: 5px;
  background: var(--sivika-gold);
}

/* WELCOME */

.welcome-content {
  color: white;
}

.welcome-label {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid rgba(255, 196, 0, 0.35);
  border-radius: 20px;
  color: var(--sivika-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.welcome-content h2 {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.45;
  margin: 20px 0 12px;
}

.welcome-content h2 span {
  color: var(--sivika-gold);
}

.welcome-content p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 25px;
}

/* FEATURES */

.left-features {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
}

.feature-item i {
  color: var(--sivika-gold);
  font-size: 15px;
}

.left-footer {
  position: relative;
  z-index: 2;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
}

/* ===================================
   RIGHT PANEL
=================================== */

.auth-right {
  padding: 42px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* FORM HEADER */

.form-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.form-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: #fff4cc;
  color: var(--sivika-primary);
  font-size: 22px;
}

.form-header h3 {
  color: var(--sivika-dark);
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 5px;
}

.form-header p {
  color: var(--sivika-muted);
  font-size: 11px;
  margin: 0;
}

/* FORM GROUP */

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

.form-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--sivika-text);
  font-size: 11px;
  font-weight: 700;
}

.required {
  color: var(--sivika-danger);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  z-index: 3;
  color: var(--sivika-primary);
  font-size: 15px;
  pointer-events: none;
}

.input-wrapper .form-control,
.input-wrapper .form-select {
  width: 100%;
  height: 46px;
  padding: 10px 42px;
  border: 1px solid var(--sivika-border);
  border-radius: 9px;
  color: var(--sivika-text);
  background-color: #fafcff;
  font-size: 11px;
  box-shadow: none;
  transition: 0.2s ease;
}

.input-wrapper .form-control::placeholder {
  color: #a0aec0;
}

.input-wrapper .form-control:focus,
.input-wrapper .form-select:focus {
  border-color: var(--sivika-blue);
  background: white;
  box-shadow: 0 0 0 3px rgba(7, 86, 168, 0.08);
}

.input-wrapper .form-select {
  cursor: pointer;
}

/* PASSWORD */

.password-toggle {
  position: absolute;
  right: 12px;
  z-index: 4;
  border: 0;
  background: transparent;
  color: var(--sivika-muted);
  font-size: 15px;
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--sivika-primary);
}

.password-feedback {
  font-size: 10px;
  margin-top: 6px;
  min-height: 14px;
}

/* INFO */

.register-info {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  margin: 5px 0 20px;
  background: #f1f7fe;
  border: 1px solid #d8e8fa;
  border-radius: 8px;
  color: #31577e;
  font-size: 10px;
  line-height: 1.7;
}

.register-info i {
  font-size: 14px;
  margin-top: 1px;
  flex-shrink: 0;
}

/* BUTTON */

.btn-register {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 9px;
  background: var(--sivika-primary);
  color: white;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn-register:hover {
  background: var(--sivika-blue);
  box-shadow: 0 8px 20px rgba(16, 47, 99, 0.18);
  transform: translateY(-2px);
}

.btn-register:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-register > i {
  font-size: 16px;
}

/* FOOTER */

.form-footer {
  text-align: center;
  margin-top: 23px;
}

.form-footer p {
  font-size: 11px;
  color: var(--sivika-muted);
  margin-bottom: 13px;
}

.form-footer a {
  color: var(--sivika-blue);
  text-decoration: none;
  font-weight: 700;
}

.form-footer a:hover {
  text-decoration: underline;
}

.back-home {
  display: inline-block;
  font-size: 10px;
  font-weight: 600 !important;
  color: var(--sivika-muted) !important;
}

/* ALERT */

.alert {
  font-size: 11px;
  border-radius: 8px;
  margin-bottom: 17px;
}

/* PAGE FOOTER */

.page-footer {
  text-align: center;
  margin-top: 20px;
  color: var(--sivika-muted);
  font-size: 10px;
}

.footer-dot {
  margin: 0 7px;
  color: var(--sivika-gold);
}

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

@media (max-width: 991px) {
  .auth-card {
    grid-template-columns: 38% 62%;
  }

  .auth-left {
    padding: 35px 25px 25px;
  }

  .auth-right {
    padding: 35px 35px;
  }

  .welcome-content h2 {
    font-size: 23px;
  }
}

@media (max-width: 767px) {
  .auth-wrapper {
    padding: 20px 12px;
    align-items: flex-start;
  }

  .auth-card {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: auto;
    border-radius: 17px;
  }

  .auth-left {
    padding: 28px 25px;
  }

  .logo-icon {
    width: 58px;
    height: 58px;
    padding: 9px;
    border-radius: 15px;
  }

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

  .brand-description {
    font-size: 10px;
  }

  /* .logo-icon {
    width: 58px;
    height: 58px;
    font-size: 29px;
    border-radius: 16px;
    margin-bottom: 10px;
  }

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

  .brand-description {
    font-size: 10px;
  } */

  .left-divider {
    margin: 18px auto;
  }

  .welcome-content {
    text-align: center;
  }

  .welcome-content h2 {
    font-size: 20px;
    margin: 12px 0 7px;
  }

  .welcome-content p {
    font-size: 10px;
    margin-bottom: 15px;
  }

  .left-features {
    display: none;
  }

  .left-footer {
    display: none;
  }

  .auth-right {
    padding: 30px 25px;
  }

  .form-header {
    margin-bottom: 23px;
  }

  .form-header h3 {
    font-size: 19px;
  }
}

@media (max-width: 380px) {
  .auth-right {
    padding: 25px 18px;
  }

  .form-header h3 {
    font-size: 17px;
  }
  .logo-icon {
    width: 50px;
    height: 50px;
    padding: 8px;
    border-radius: 12px;
  }

  .brand-name {
    font-size: 24px;
    letter-spacing: 2px;
  }

  .brand-description {
    font-size: 9px;
  }
}

/* =====================================================
   SELECT2 - SIVIKA REGISTRATION
===================================================== */

/* WRAPPER */
.select2-wrapper {
  position: relative;
  width: 100%;
}

/* SELECT2 CONTAINER */
.select2-container {
  width: 100% !important;
  display: block;
}

/* SELECT2 SELECTION */
.select2-container--bootstrap-5 .select2-selection {
  min-height: 48px;
  height: 48px;

  border: 1px solid var(--sivika-border, #dbe2ea);
  border-radius: 12px;

  background-color: #fff;

  display: flex;
  align-items: center;

  padding-left: 42px;

  box-shadow: none;
  transition: all 0.25s ease;
}

/* SELECT2 TEXT */
.select2-container--bootstrap-5
  .select2-selection--single
  .select2-selection__rendered {
  padding-left: 0;
  padding-right: 32px;

  line-height: normal;
  color: #334155;

  display: flex;
  align-items: center;

  min-height: 46px;
}

/* PLACEHOLDER */
.select2-container--bootstrap-5 .select2-selection__placeholder {
  color: #9ca3af;
}

/* ARROW */
.select2-container--bootstrap-5
  .select2-selection--single
  .select2-selection__arrow {
  height: 46px;
  right: 12px;
}

/* FOCUS */
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
  border-color: var(--sivika-blue, #0756a8);
  box-shadow: 0 0 0 3px rgba(7, 86, 168, 0.12);
}

/* INPUT ICON */
.select2-wrapper .input-icon {
  position: absolute;
  top: 50%;
  left: 15px;

  transform: translateY(-50%);

  z-index: 5;
  pointer-events: none;

  color: #64748b;
}

/* ICON WHEN FOCUS */
.select2-wrapper:has(.select2-container--focus) .input-icon,
.select2-wrapper:has(.select2-container--open) .input-icon {
  color: var(--sivika-blue, #0756a8);
}

/* DROPDOWN */
.select2-container--bootstrap-5 .select2-dropdown {
  border: 1px solid #dbe2ea;
  border-radius: 12px;

  overflow: hidden;
  margin-top: 5px;

  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

/* SEARCH BOX */
.select2-container--bootstrap-5 .select2-search--dropdown {
  padding: 10px;
}

.select2-container--bootstrap-5
  .select2-search--dropdown
  .select2-search__field {
  border: 1px solid #dbe2ea;
  border-radius: 8px;

  padding: 9px 12px;

  outline: none;
  box-shadow: none;
}

.select2-container--bootstrap-5
  .select2-search--dropdown
  .select2-search__field:focus {
  border-color: var(--sivika-blue, #0756a8);
  box-shadow: 0 0 0 3px rgba(7, 86, 168, 0.1);
}

/* RESULTS */
.select2-container--bootstrap-5 .select2-results__options {
  max-height: 250px;
}

/* OPTION */
.select2-container--bootstrap-5 .select2-results__option {
  padding: 10px 14px;
  font-size: 13px;
  transition: background 0.15s ease;
}

/* HOVER */
.select2-container--bootstrap-5 .select2-results__option--highlighted {
  background-color: var(--sivika-blue, #0756a8) !important;
  color: #fff !important;
}

/* SELECTED */
.select2-container--bootstrap-5 .select2-results__option--selected {
  background-color: #eef4ff;
  color: var(--sivika-primary, #102f63);
}

/* CLEAR */
.select2-container--bootstrap-5 .select2-selection__clear {
  margin-right: 8px;
}

/* DISABLED */
.select2-container--disabled .select2-selection {
  background-color: #f1f5f9;
  cursor: not-allowed;
}

/* VALIDATION */
.select2-wrapper.is-invalid .select2-selection {
  border-color: #dc3545;
}

/* RESPONSIVE */
@media (max-width: 767px) {
  .select2-container--bootstrap-5 .select2-selection {
    min-height: 46px;
    height: 46px;
  }

  .select2-container--bootstrap-5
    .select2-selection--single
    .select2-selection__rendered {
    min-height: 44px;
  }

  .select2-container--bootstrap-5
    .select2-selection--single
    .select2-selection__arrow {
    height: 44px;
  }
}

/* =====================================================
   SELECT2 - FONT SIZE SYNC
===================================================== */

/* Teks select yang terpilih */
.select2-container--bootstrap-5
  .select2-selection--single
  .select2-selection__rendered {
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  color: #334155;
}

/* Placeholder */
.select2-container--bootstrap-5 .select2-selection__placeholder {
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 400 !important;
}

/* Search input dropdown */
.select2-container--bootstrap-5
  .select2-search--dropdown
  .select2-search__field {
  font-family: inherit !important;
  font-size: 11px !important;
}

/* Item dropdown */
.select2-container--bootstrap-5 .select2-results__option {
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 400 !important;
}

/* Samakan dengan input SIVIKA */
.select2-container--bootstrap-5 .select2-selection {
  font-size: 11px !important;
}

/* =====================================================
   FORM VALIDATION ERROR - SIVIKA
===================================================== */

/* FORM GROUP */
.form-group {
  margin-bottom: 18px;
}

/* ERROR MESSAGE */
.form-error {
  display: block;
  width: 100%;

  margin-top: 6px;
  padding: 0;

  color: #dc2626;
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;

  animation: errorFadeIn 0.2s ease;
}

/* ERROR ICON */
.form-error::before {
  content: "\f33a";
  font-family: "bootstrap-icons";

  display: inline-block;
  margin-right: 5px;

  font-size: 10px;
  vertical-align: -1px;
}

/* INPUT WITH ERROR */
.form-group:has(.form-error) .form-control,
.form-group:has(.form-error) .form-select {
  border-color: rgba(220, 38, 38, 0.65);
}

/* INPUT FOCUS WITH ERROR */
.form-group:has(.form-error) .form-control:focus,
.form-group:has(.form-error) .form-select:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

/* SELECT2 WITH ERROR */
.form-group:has(.form-error)
  .select2-container--bootstrap-5
  .select2-selection {
  border-color: rgba(220, 38, 38, 0.65);
}

/* SELECT2 FOCUS WITH ERROR */
.form-group:has(.form-error)
  .select2-container--bootstrap-5.select2-container--focus
  .select2-selection,
.form-group:has(.form-error)
  .select2-container--bootstrap-5.select2-container--open
  .select2-selection {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

/* CAPTCHA ERROR */
.captcha-wrapper .form-error {
  margin-top: 10px;
}

/* ANIMATION */
@keyframes errorFadeIn {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }

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