@media (max-width: 1024px) {

  .Information_input_success,
  .Information_input_success2,
  .Information_input_success3,
  .Information_input_error,
  .Information_input_error2 {
    position: relative;
    right: unset;
    bottom: unset;
  }

  .container {
    flex-direction: column;
    height: auto;
    gap: 20px;
    margin-top: 20px;
  }

  .login-panel {
    width: 95%;
  }

  .dashboard {
    height: auto;
    min-width: unset;
    margin: 30px 0 20px 0;
    width: 90%;
  }

  .dashboard-imgs {
    margin: 0 auto;
    width: 99vw;
    height: 380px;
  }

  .dashboard-imgs .hex-main {
    width: 220px;
    height: 180px;
    left: 0;
    top: 110px;
  }

  .dashboard-imgs .hex-top {
    width: 110px;
    height: 88px;
    left: 60px;
    top: 14px;
  }

  .dashboard-imgs .hex-side {
    width: 70px;
    height: 45px;
    left: 160px;
    top: 60px;
  }
}

@media (max-width: 650px) {
  .dashboard-imgs {
    height: 220px;
  }

  .dashboard-imgs .hex-main {
    width: 110px;
    height: 80px;
    left: 0;
    top: 50px;
  }

  .dashboard-imgs .hex-top {
    width: 57px;
    height: 45px;
    left: 25px;
    top: 4px;
  }

  .dashboard-imgs .hex-side {
    width: 32px;
    height: 20px;
    left: 72px;
    top: 27px;
  }
}

/* RWD 手機版調整 */

@media screen and (max-width: 480px) {
  .form-row.error>label {
    border-right: 2px solid #ff0000;
  }

  .application-panel {
    padding: 20px 15px;
    margin: 20px 10px;
  }

  .form-row {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 12px;
  }

  .form-row.error input,
  .form-row.error select,
  .select-wrapper select {
    border-radius: 6px;
  }

  .form-row>label {
    width: 100%;
    border-radius: 6px;
    border-right: 2px solid #444;
    margin-bottom: 6px;
    padding: 8px 10px;
  }

  .form-row>input,
  .form-row>select {
    border-radius: 6px;
    width: 100%;
    font-size: 1rem;
    padding: 10px 12px;
  }

  .password-input input {
    padding-right: 38px;
    border-radius: 6px;
  }

  .password-requirements,
  .password-note {
    margin-left: 0;
  }

  .form-row.consent-row {
    flex-direction: column;
  }

  .form-row.consent-row>label,
  .consent-text {
    width: 100%;
    border-radius: 6px;
  }

  .form-row.consent-row>label {
    text-align: left;
    margin-bottom: 8px;
    height: auto;
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #444;
    border-radius: 6px 6px 0 0;
  }

  .consent-text {
    padding: 12px 15px;
  }

  .consent-text:before {
    display: none;
  }
}

@media (max-width: 400px) {
  #lightbox-header {
    font-size: 1rem;
  }

  #lightbox-body {
    font-size: 0.85rem;
  }

  #agree-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}

/* 響應式 */
@media (max-width: 900px) {
  main.custom-main {
    gap: 30px;
  }

  a.custom-system-btn {
    width: 90%;
    margin: auto;
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  main.custom-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  header.custom-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .custom-header-right {
    width: 100%;
    font-size: 0.85rem;
    margin-top: 6px;
    text-align: left;
  }

  main.custom-main {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  a.custom-system-btn {
    width: 90%;
    max-width: 300px;
  }
}

/* 響應式 */
@media (max-width: 520px) {

  #lightbox-footer,
  #lightbox-footer2 {
    flex-direction: column;
  }

  #lightbox-footer button {
    flex: 1 1 100%;
  }

  #lightbox-header {
    font-size: 1.4rem;
  }
}