@charset "utf-8";
:root {
    --primary: #FFF;
    --primary-op5: #f3723a82;
    --secondary: #6c757d;
    --secondary-op6: #6c757d9c;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffa200;
    --danger: #dc3545;
    --danger-op2: #dc354533;
    --light: #fff;
    --dark: #212529;
    --gray-100: #f8f9fa;
    --gray-100-op3: #f8f9fa30;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
body{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-family: var(--font-sans-serif);
    background-color: var(--gray-100);
}
body > div{
    min-height: 80vh;
    display: flex;
    flex-wrap: wrap;
    align-self: center;
    align-items: center;
}
body > div > *{
    align-self: center;
    align-items: center;
}
.form button{
    background-color: var(--primary) !important;
}
.form button:hover{
    box-shadow: 0px 0px 0 0 var(--dark);
    transition: 0.3s;
}
h2,h3{
    width: 100%;
    color: var(--dark);
    text-align: center;
    margin: 0px auto;
}

.hidden {
    display: none;
}
header {
    width: 100%;
    height: 100px;
    color: var(--light);
    text-align: center;
    /* line-height: 50px; */
    font-size: 20px;
    font-family: "微軟正黑體";
  }

#logo{
    max-height: 60px;
    max-width: 100%;
    padding: 10px;
}
.container{
    width: 90%;
    margin: 0 auto;
}
.container > .form{
    width: 100%;
    margin: 0 auto;
    padding: 30px 30px;
    text-align: center;
    box-shadow: 5px 5px 0 0 var(--secondary-op6);
    border-radius: 10px;
    background-color: var(--light);
    border: 1px solid var(--secondary);
}
.container > .form input, .container > .form select, .container > .form textarea{
    font-size: 18px;
    background-color: var(--gray-100);
    border-radius: 5px;    
    border-bottom: 1px solid var(--secondary);
    border-right: 1px solid var(--secondary);
    outline: 0;
    width: 100%;
    border-left: 0;
    border-top: 0;
    margin: 0 0 15px;
    padding: 15px;
    box-sizing: border-box;
    font-size: 14px;
}
.container > .form select{
    display: block;
    width: 100%;
    -moz-padding-start: calc(0.75rem - 3px);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.container > .form .message{
    font-size: 16px;
}
@media only screen and (min-width: 768px) {
    #logo{
        margin-top: 200px;
        max-width: 80%;
    }
    .container{
        width: 80%;
    }
}
@media only screen and (min-width:  1024px) {
    #logo{
        max-width: 30%;
    }
    .container{
        width: 33.33%;
    }
}

a[class*="-button"]{
    display: inline-block;
    text-align: center;
    text-decoration: none;
    margin-bottom: 15px;
}

a[class*="-button"],
button[class*="-button"]{
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    width: 100%;
    border: 1px solid var(--dark);
    box-shadow: 5px 5px 0 0 var(--dark);
    color: var(--light);
    font-weight: bolder;
}

button[class*="-button"]:disabled{
    cursor: not-allowed;
    background-color: var(--gray-100) !important;
    color: var(--dark) !important;
}

input[readonly]{
    cursor: not-allowed;
    background-color: var(--gray-100) !important;
    color: var(--dark) !important;
}

.bg-primary {
    background-color: var(--primary);
}
.bg-primary:hover {
    background-color: var(--primary-op5);
}

/* sweetAlert2 */
div:where(.swal2-container).swal2-center > .swal2-popup{
    margin: auto;
}
.swal2-title{
    width: fit-content !important;
    max-width: 32em !important;
    display: flex !important;
    min-width: -webkit-fill-available;
    justify-content: center;
}
.swal2-input-label{
    white-space: break-spaces;
    text-align: center;
}
div.swal2-container .swal2-html-container#swal2-html-container{
    font-size: 1.75em;
    white-space: pre-line;
}
div.swal2-toast.swal2-toast .swal2-html-container#swal2-html-container{
    font-size: inherit !important;
}
#otp-container {
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  
  .otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }

/* 進度條樣式 */
progress {
    width: 100%;
    height: 15px;
    appearance: none;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1;
}
/* 自訂進度條顏色 */
progress::-webkit-progress-bar {
    background-color: var(--primary-op5);
}
progress::-webkit-progress-value {
    background-color: var(--primary);
}
progress::-moz-progress-bar {
    background-color: var(--primary);
}
/* 驗證碼 */
div.veryBox {
    position: relative;
    display: block;
}
img.veryCode {
    position: absolute;
    z-index: 99;
    top: 8px;
    right: 8px;
    height: 32px;
}
.error{
    border-color: var(--danger) !important;
    background-color: var(--danger-op2) !important;
    border-width: 2px !important;
}

.line span{
    display:block;
    width: 100%;
}
.line {
    color: #03c755;
    text-decoration: none;
    position: absolute;
    right: 10px;
    top: 10px;
}
.swal2-footer .line{
    position: relative;
}
.line:hover{
    color: #0c9e48;
}

.d-none{
    display: none;
}