/* =============================================
   JTL Wawi - Signup Page
   Pure CSS - No external dependencies
   ============================================= */

/* --- Fonts --- */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --jtl-orange: #FB581F;
  --jtl-tech-blue: #2722F8;
  --jtl-light-blue: #89D2FF;
  --jtl-dark-blue: #0B1B45;
  --jtl-dark-blue-50: rgba(11, 27, 69, 0.5);
  --jtl-dark-blue-20: rgba(11, 27, 69, 0.2);
  --jtl-white: #fff;
  --jtl-black: #000;
  --jtl-fresh-green: #00db6a;
  --jtl-red: #db2000;
  --jtl-yellow: #eaea68;
  --jtl-purple: #330136;
  --jtl-aquamarin: #7ef7f5;
  --jtl-aquamarin-d: #4ddbe9;
  --jtl-sand: #EEEEE7;
  --jtl-sand-50: rgba(238, 238, 231, 0.5);
  --jtl-sand-20: rgba(238, 238, 231, 0.2);

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --font-inter: 'Inter', Arial, sans-serif;
}

html, body {
  min-height: 100%;
  background-color: var(--jtl-sand);
  font-family: var(--font-inter);
  color: var(--jtl-dark-blue);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-inter);
  font-weight: 700;
  line-height: 1.2;
  color: var(--jtl-dark-blue);
  margin-bottom: 0.5em;
  letter-spacing: -0.03em;
}

h1 { font-size: 1.5em; }
h2 { font-size: 1.25em; line-height: 1.5; }
h3 { font-size: 1.125em; }
h4 { font-size: 1em;     letter-spacing: -0.02em; }
h5 { font-size: 0.875em; letter-spacing: -0.01em; }
h6 { font-size: 0.75em;  text-transform: uppercase; letter-spacing: 0.1em; }

p {
  font-size: 0.9em;
  font-weight: 400;
  line-height: 1.6;
  color: var(--jtl-dark-blue);
  margin-bottom: 1.25em;
}

p:last-child { margin-bottom: 0; }

a {
  color: var(--jtl-tech-blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:visited { color: var(--jtl-dark-blue); }
a:hover { color: var(--jtl-tech-blue); }

strong { font-weight: 700; }
em { font-style: italic; }

small {
  font-size: 12px;
  line-height: 1.4;
  color: var(--jtl-dark-blue-50);
}

ul, ol {
  font-size: 0.9375em;
  line-height: 1.6;
  padding-left: 1.5em;
  margin-bottom: 1em;
}

ul { list-style: disc; }
ol { list-style: decimal; }

li { margin-bottom: 0.5em; }
li:last-child { margin-bottom: 0; }

li > ul,
li > ol {
  margin-top: 0.5em;
}

blockquote {
  border-left: 8px solid var(--jtl-tech-blue);
  margin: 0 0 1em;
  padding: 12px 20px;
  background: var(--jtl-sand-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9375em;
  line-height: 1.6;
}

blockquote p { margin-bottom: 0; }

code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  background: var(--jtl-sand-50);
  border: 1px solid var(--jtl-dark-blue-20);
  border-radius: 4px;
  padding: 2px 6px;
}

pre {
  background: var(--jtl-dark-blue);
  color: var(--jtl-white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  overflow-x: auto;
  margin-bottom: 1em;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  color: inherit;
}

hr {
  border: none;
  border-top: 1px solid var(--jtl-dark-blue-20);
  margin: 24px 0;
}

/* --- Layout --- */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 32px;
  gap: 20px;
}

.main-content {
  flex: 1;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* --- Panels --- */
.panel {
  background: var(--jtl-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  display: flex;
  flex-direction: column;
}

.section:first-child { padding-top: 0; }
.section:last-child { padding-bottom: 0; }

/* --- Left Panel --- */
.panel-left {}

.logos-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.logo-box {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--jtl-sand);
}

.logo-box img, .logo-box svg {
  width: 70%;
  height: auto;
  object-fit: contain;
}

.logo-box.jtl img, .logo-box.jtl svg {
  max-width: 72px;
}

.logo-connector {
  display: flex;
  align-items: center;
  width: 48px;
  height: 2px;
  background: var(--jtl-sand);
}


/* --- Info Box --- */
.info-box {
  background: var(--jtl-sand-50);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-box p {
  font-size: 0.9em;
  font-weight: 400;
  line-height: 1.6;
  color: var(--jtl-dark-blue);
}

.info-box p strong {
  font-weight: 700;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-lg);
  font-family: var(--font-inter);
  font-size: 0.9375em;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--jtl-tech-blue);
  color: var(--jtl-tech-blue);
}

.btn-outline {
  border: 2px solid var(--jtl-dark-blue);
  color: var(--jtl-dark-blue);
}

.btn-outline-sand {
  border: 2px solid var(--jtl-sand);
  color: var(--jtl-dark-blue);
}

.btn-primary {
  background: var(--jtl-tech-blue);
  color: var(--jtl-white);
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-lg);
}

.btn-primary:hover {
  background: #0c0a7b;
  color: var(--jtl-white);
}

.btn-primary-green {
  background: var(--jtl-fresh-green);
  color: var(--jtl-dark-blue);
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-lg);
}

.btn-primary-green:hover {
  background: #00a350;
  color: var(--jtl-dark-blue);
}

.ico-button {
  padding: 0 12px 0 24px;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon-lg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Right Panel --- */
.panel-right {}


/* --- Connected Account Card --- */
.account-card {
  border: 2px solid var(--jtl-fresh-green);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-card-icon {
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-card-text strong {
  display: block;
  font-size: 0.9375em;
  font-weight: 700;
  line-height: 1.5;
  color: var(--jtl-dark-blue);
}

.account-card-text span {
  font-size: 0.9375em;
  font-weight: 400;
  line-height: 1.5;
  color: var(--jtl-dark-blue);
}

/* --- New Account Section --- */

/* --- Form --- */
.section > .btn {
  align-self: flex-start;
  margin-bottom: 24px;
}

.btn-group {
  margin-bottom: 1.25em;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}

.form-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-input:last-child {
  margin-bottom: 0;
}

.form-input label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--jtl-dark-blue);
}

.form-input input {
  height: 44px;
  background: var(--jtl-sand-20);
  border: 2px solid var(--jtl-dark-blue-50);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-family: var(--font-inter);
  font-size: 15px;
  font-weight: 400;
  color: var(--jtl-dark-blue);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
  width: 100%;
}

.form-input input::placeholder {
  color: var(--jtl-dark-blue-50);
  font-weight: 400;
}

.form-input input:hover {
  border-color: var(--jtl-tech-blue);
}

.form-input input:focus {
  border-color: var(--jtl-tech-blue);
  background: var(--jtl-white);
}

.form-input.is-error input {
  border-color: var(--jtl-red);
  background: var(--jtl-white);
}

.form-input.is-error .form-hint {
  color: var(--jtl-red);
}

.form-input input:disabled {
  background: var(--jtl-sand-50);
  border-color: var(--jtl-dark-blue-20);
  color: var(--jtl-dark-blue-50);
  cursor: not-allowed;
}

.form-input input:disabled::placeholder {
  color: var(--jtl-dark-blue-20);
}

.form-input select {
  height: 44px;
  background: var(--jtl-sand-20);
  border: 2px solid var(--jtl-dark-blue-50);
  border-radius: var(--radius-sm);
  padding: 0 36px 0 14px;
  font-family: var(--font-inter);
  font-size: 15px;
  font-weight: 400;
  color: var(--jtl-dark-blue);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
  width: 100%;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%230B1B45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.form-input select:hover {
  border-color: var(--jtl-tech-blue);
}

.form-input select:focus {
  border-color: var(--jtl-tech-blue);
  background-color: var(--jtl-white);
}

.form-input select:disabled {
  background-color: var(--jtl-sand-50);
  border-color: var(--jtl-dark-blue-20);
  color: var(--jtl-dark-blue-50);
  cursor: not-allowed;
}

.form-input textarea {
  background: var(--jtl-sand-20);
  border: 2px solid var(--jtl-dark-blue-50);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-inter);
  font-size: 15px;
  font-weight: 400;
  color: var(--jtl-dark-blue);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
  width: 100%;
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.form-input textarea::placeholder {
  color: var(--jtl-dark-blue-50);
  font-weight: 400;
}

.form-input textarea:hover {
  border-color: var(--jtl-tech-blue);
}

.form-input textarea:focus {
  border-color: var(--jtl-tech-blue);
  background: var(--jtl-white);
}

.form-input textarea:disabled {
  background: var(--jtl-sand-50);
  border-color: var(--jtl-dark-blue-20);
  color: var(--jtl-dark-blue-50);
  cursor: not-allowed;
  resize: none;
}

.form-hint {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--jtl-dark-blue);
  margin-top: 4px;
}

/* --- Submit row --- */
.form-submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

/* --- Footer --- */
.footer {
  background: var(--jtl-white);
  border-radius: var(--radius-lg);
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px 0 26px;
  margin-bottom: 0;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-logo {
  width: 68px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.footer-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.footer-text {
  font-family: var(--font-inter-display);
  font-size: 12px;
  line-height: 1.1;
  color: var(--jtl-dark-blue);
  max-width: 450px;
}

.footer-text strong {
  display: block;
  font-weight: 700;
  margin-bottom: 3px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-nav a,
.footer-nav a:visited {
  font-size: 14px;
  font-weight: 700;
  color: var(--jtl-dark-blue);
  text-decoration: none;
  line-height: 1.2;
}

.footer-nav a:hover {
  color: var(--jtl-tech-blue);
  text-decoration: none;
}

/* --- Spacing Utilities --- */
.mt-4  { margin-top:  4px;  }
.mt-8  { margin-top:  8px;  }
.mt-12 { margin-top: 12px;  }
.mt-16 { margin-top: 16px;  }
.mt-20 { margin-top: 20px;  }
.mt-24 { margin-top: 24px;  }
.mt-32 { margin-top: 32px;  }
.mt-40 { margin-top: 40px;  }
.mt-48 { margin-top: 48px;  }

.mb-4  { margin-bottom:  4px;  }
.mb-8  { margin-bottom:  8px;  }
.mb-12 { margin-bottom: 12px;  }
.mb-16 { margin-bottom: 16px;  }
.mb-20 { margin-bottom: 20px;  }
.mb-24 { margin-bottom: 24px;  }
.mb-32 { margin-bottom: 32px;  }
.mb-40 { margin-bottom: 40px;  }
.mb-48 { margin-bottom: 48px;  }

/* --- Responsive --- */
@media (max-width: 900px) {
  .page-wrapper {
    padding: 12px;
  }

  .main-content {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .panel {
    padding: 18px;
    gap: 32px;
  }

  .info-box {
    padding: 12px;
    gap: 0;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 24px 20px;
    gap: 16px;
    border-radius: var(--radius-lg);
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .footer-nav {
    gap: 20px;
  }
}

@media (max-width: 425px) {
  .logo-box {
    width: 72px;
    height: 72px;
    border-radius: 12px;
  }
}
