/* Page 01 – 99 WICKET – two-column login, match screenshot */
* { box-sizing: border-box; }

body.wicket-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #2D3944;
  background: linear-gradient(180deg, #2D3944 0%, #1e262e 100%);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10vh;
}

.wicket-card {
  width: 560px;
  max-width: calc(100% - 24px);
  min-height: 380px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  overflow: hidden;
}

.wicket-brand {
  width: 42%;
  min-width: 220px;
  background: #f5a623;
  background: linear-gradient(135deg, #f5a623 0%, #e88b1e 50%, #FFB80C 100%);
  background-image: url("https://9wicket.com/images/9wickets/bg-login_wrap.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px 0 0 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
}

.wicket-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.wicket-logo-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #FFB80C;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wicket-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

.wicket-form-wrap {
  flex: 1;
  background: #EEEEEE;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.wicket-form-wrap h1 {
  font-size: 20px;
  line-height: 24px;
  margin: 0 0 1.25rem;
  font-weight: 700;
  color: #2D3944;
  text-align: center;
}

.wicket-form-wrap form {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.wicket-form-wrap input[type="text"],
.wicket-form-wrap input[type="password"] {
  width: 100%;
  height: 42px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  background: #fff;
  color: #2D3944;
  box-sizing: border-box;
}

.wicket-form-wrap input::placeholder {
  color: #6b7280;
}

.wicket-form-wrap input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.wicket-verification-row {
  display: flex;
  align-items: center;
  width: 100%;
  height: 42px;
  padding: 0 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 1rem;
  background: #fff;
  box-sizing: border-box;
}

.wicket-verification-row:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.wicket-verification-row input {
  flex: 1;
  border: none !important;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  line-height: 40px;
  height: 40px;
  background: transparent !important;
  min-width: 0;
  box-shadow: none !important;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  color: #2D3944;
}

.wicket-verification-row input::placeholder {
  color: #6b7280;
}

.wicket-verification-code {
  flex: 0 0 auto;
  font-size: 1rem;
  font-weight: 700;
  color: #2D3944;
  letter-spacing: 0.1em;
  margin-left: 0.5rem;
}

.wicket-form-wrap .btn-login {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #f5a623;
  background: linear-gradient(180deg, #f5a623 0%, #e88b1e 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(232, 139, 30, 0.35);
}

.wicket-form-wrap .btn-login .btn-login-icon {
  flex-shrink: 0;
}

.wicket-form-wrap .btn-login:hover {
  background: linear-gradient(180deg, #f8b030 0%, #ea9528 100%);
  box-shadow: 0 3px 10px rgba(232, 139, 30, 0.4);
}

.wicket-form-wrap .message {
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  border-radius: 4px;
}

.wicket-form-wrap .message.error { color: #c0392b; }
.wicket-form-wrap .message.success { color: #27ae60; }

.wicket-header {
  display: none;
}

.wicket-footer {
  margin: 2rem auto 1.5rem;
  padding: 0 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  width: 560px;
  max-width: calc(100% - 24px);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

/* Mobile: three sections – top bar, login module (70–80%), footer bar – match screenshot height */
@media (max-width: 768px) {
  body.wicket-page {
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .wicket-header {
    display: block;
    flex: 0 0 auto;
    height: 12vh;
    min-height: 44px;
    max-height: 56px;
    background: #2D3944;
    width: 100%;
  }
  .wicket-card {
    width: 100%;
    max-width: 100%;
    height: 50vh;
    height: 50dvh;
    min-height: 0;
    margin: 0;
    flex: 0 0 auto;
    flex-direction: row;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    overflow: hidden;
  }
  .wicket-brand {
    width: 48%;
    min-width: 0;
    flex: 0 0 48%;
    border-radius: 0;
    background-size: cover;
    background-position: center;
    padding: 0.75rem;
    min-height: 0;
    height: auto;
    align-self: stretch;
  }
  .wicket-logo {
    align-self: flex-end;
  }
  .wicket-logo-num { width: 28px; height: 28px; font-size: 1rem; }
  .wicket-logo-text { font-size: 1rem; }
  .wicket-form-wrap {
    width: 52%;
    flex: 1 1 52%;
    padding: 1rem 0.75rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .wicket-form-wrap form {
    max-width: 100%;
  }
  .wicket-footer {
    flex: 1 1 auto;
    margin: 0;
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    background: #2D3944;
    border-bottom: none;
    font-size: 11px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .wicket-header {
    height: 10vh;
    min-height: 40px;
    max-height: 48px;
  }
  .wicket-brand {
    padding: 0.5rem;
  }
  .wicket-logo-num { width: 24px; height: 24px; font-size: 0.9rem; }
  .wicket-logo-text { font-size: 0.9rem; }
  .wicket-form-wrap {
    padding: 0.75rem 0.5rem;
  }
  .wicket-form-wrap h1 {
    font-size: 15px;
    margin-bottom: 0.5rem;
  }
  .wicket-form-wrap input[type="text"],
  .wicket-form-wrap input[type="password"] {
    height: 40px;
    font-size: 16px;
    margin-bottom: 0.4rem;
  }
  .wicket-verification-row {
    height: 40px;
    padding: 0 0.5rem;
    margin-bottom: 0.5rem;
  }
  .wicket-verification-row input {
    height: 40px;
    line-height: 40px;
    font-size: 16px;
  }
  .wicket-form-wrap .btn-login {
    padding: 0.6rem 1rem;
    font-size: 15px;
    min-height: 42px;
  }
  .wicket-footer {
    font-size: 10px;
    padding: 10px 12px;
  }
}
