/* 共用變數 */
:root {
    --primary: rgb(69, 149, 155);
    --primary-light: rgb(87, 176, 183);
    --primary-light-alpha: rgb(87, 176, 183,0.4);
    --border: #b8b8b8;
    --border-hover: #757575;
    --border-active: rgb(69, 149, 155);
    --border-icon: #e8e8e8;
    --border-radio: #c8c5c5;
    --bg-content: #f2f6fe;
    --bg-white: #fff;
    --text-main: #111111;
    --text-grey: grey;
    --text-caption: #5e5e5e;
    --text-light: #b8b8b8;
    --shadow-active: 2px 2px 6px var(--primary);
}

.btn:disabled {
    border-color: transparent;
}

/* 新增自訂 primary 樣式覆蓋 Bootstrap */
.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: rgb(56, 137, 142);
    --bs-btn-hover-border-color: rgb(56, 137, 142);
    --bs-btn-active-bg: rgb(56, 137, 142);
    --bs-btn-active-border-color: rgb(56, 137, 142);
    --bs-btn-disabled-bg: var(--primary-light);
    --bs-btn-disabled-border-color: var(--primary-light);
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--bs-btn-hover-bg) !important;
    border-color: var(--bs-btn-hover-bg) !important;
}

.btn-primary:active,
.btn-primary.active {
    background-color: var(--bs-btn-hover-bg) !important;
    border-color: var(--bs-btn-hover-bg) !important;
}

.btn-primary.disabled,
.btn-primary:disabled {
    background-color: var(--primary-light) !important;
    border-color: var(--primary-light) !important;
}

.fs-12 {
    font-size: 12px;
}

.fs-14 {
    font-size: 14px;
}

.form-label {
    margin-bottom: 2px;
    color: #6B6B6B;
    font-weight: 900;
    font-size: 15px;
}

.form-control,
.form-select {
    border-radius: 50px;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 2px var(--primary) !important;
}

.input-password {
    position: relative;
}

.input-password .btn-eye {
    color: var(--text-grey);
}

.input-password .btn-eye:active {
    border-color: transparent !important;
    color: var(--text-grey);
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes l7 {
    0% {
        transform: translate(0, 0)
    }

    25% {
        transform: translate(100%, 0)
    }

    50% {
        transform: translate(100%, 100%)
    }

    75% {
        transform: translate(0, 100%)
    }

    100% {
        transform: translate(0, 0)
    }
}




html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    background: linear-gradient(to bottom, var(--primary-light-alpha), var(--primary-light));
    position: relative;
    overflow: hidden;
}

html::before,
html::after,
body::before,
body::after,
.bgMarkCircle::before,
.bgMarkCircle::after,
.bgMarkCircle1::before,
.bgMarkCircle1::after,
.bgMark::before {
    content: '';
    position: absolute;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    z-index: -1;
}

html::before {
    left: 0;
    right: 30%;
    margin: 0 auto;
    bottom: 0;
    background-image: url(../images/bgMark2.png);
    width: 381px;
    height: 174px;
}

html::after {
    left: 40%;
    right: 0;
    margin: 0 auto;
    bottom: 0;
    background-image: url(../images/bgMark3.png);
    width: 468px;
    height: 312px;
}

body::before {
    left: 0;
    top: 0;
    background-image: url(../images/bgMark.png);
    width: 459px;
    height: 260px;
}

body::after {
    left: 0;
    top: 20%;
    bottom: 0;
    margin: auto 0;
    background-image: url(../images/bgMark1.png);
    width: 258px;
    height: 510px;
}

.bgMarkCircle::before {
    left: -160px;
    bottom: -135px;
    background-image: url(../images/bgGEllipse.png);
    width: 700px;
    height: 700px;
}

.bgMarkCircle::after {
    left: 250px;
    bottom: 50px;
    background-image: url(../images/bgGEllipse1.png);
    width: 500px;
    height: 500px;
}

.bgMarkCircle1::before {
    right: -300px;
    top: 150px;
    bottom: 0;
    margin: auto 0;
    background-image: url(../images/bgGEllipse2.png);
    width: 800px;
    height: 800px;
}

.bgMarkCircle1::after {
    right: 0;
    left: -500px;
    top: -300px;
    margin: 0 auto;
    background-image: url(../images/bgGEllipse3.png);
    width: 600px;
    height: 600px;
}

.bgMark::before {
    background-image: url(../images/bgMark4.png);
    width: 400px;
    height: 400px;
    z-index: 1;
    top: 0px;
    right: 0;
    left: 350px;
    margin: 0 auto;
}

/* 動畫 for .bgMarkCircle::after */
.bgMarkCircle::after {
    animation: bgMarkCircleAfterMove 50s infinite alternate linear;
}

@keyframes bgMarkCircleAfterMove {
    from {
        bottom: 50px;
    }

    to {
        bottom: -200px;
    }
}

/* 動畫 for .bgMarkCircle::before */
.bgMarkCircle::before {
    animation: bgMarkCircleBeforeMove 30s infinite alternate linear;
}

@keyframes bgMarkCircleBeforeMove {
    from {
        transform: none;
    }

    to {
        transform: translate(60px, -40px) scale(1.05) rotate(10deg);
    }
}

/* 動畫 for .bgMarkCircle1::before */
.bgMarkCircle1::before {
    animation: bgMarkCircle1BeforeMove 100s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

@keyframes bgMarkCircle1BeforeMove {
    from {
        transform: none;
    }

    to {
        transform: translate(-400px, 500px) rotate(-100deg) scale(1.08);
    }
}

/* 動畫 for .bgMarkCircle1::after */
.bgMarkCircle1::after {
    animation: bgMarkCircle1AfterMove 100s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

@keyframes bgMarkCircle1AfterMove {
    0% {
        transform: translate(0px, 0px) rotate(0deg);
    }

    33% {
        transform: translate(200px, 40px) rotate(90deg);
    }

    66% {
        transform: translate(200px, -40px) rotate(90deg);
    }

    100% {
        transform: translate(0px, 0px) rotate(0deg);
    }
}

.logoMark {
    position: absolute;
    top: 6px;
    left: 12px;
    z-index: 1;
}

.text-caption {
    font-size: 14px;
    font-weight: 900;
    color: var(--text-caption);
}

.contentWrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 16px;
    background: var(--bg-content);
    border-radius: 20px;
    border: 5px solid var(--bg-white);
    width: 600px;
    max-height: 75%;
    z-index: 1;
    transition: all 0.3s ease-in-out;
}

.contentWrap::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: #F5F5F5;
    margin-top: 5px;
    margin-bottom: 5px;
}

.contentWrap::-webkit-scrollbar {
    width: 6px;
    background-color: #F5F5F5;
}

.contentWrap::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #888888;
}

.contentWrap .logo {
    position: relative;
    margin-bottom: 12px;
}

.contentWrap .logo::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 30px;
    height: 2px;
    border-radius: 50px;
    background-color: var(--text-grey);
}

ul.btnRadios {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    margin-left: -1%;
    margin-right: -1%;
}

ul.btnRadios li {
    width: 48%;
    margin-left: 1%;
    margin-right: 1%;
    margin-bottom: 8px;
}

ul.btnRadios .btn {
    position: relative;
    width: 100%;
    color: var(--text-light);
    border: 1px solid var(--border);
    text-align: start;
    display: flex;
    padding: 12px;
}

ul.btnRadios .btn::after {
    content: '';
    width: 15px;
    height: 15px;
    border-radius: 50%;
    flex-shrink: 0;
    margin: 0 0 auto auto;
    border: 1px solid var(--border-radio);
}

ul.btnRadios .btn .icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--bg-white);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 4px;
    border: 1px solid var(--border-icon);
}

ul.btnRadios .btn .icon i {
    color: var(--text-grey);
}

ul.btnRadios .btn .text {
    color: var(--text-main);
}

ul.btnRadios .btn .text p {
    margin-bottom: 2px;
    font-weight: 900;
}

ul.btnRadios .btn .text span {
    font-size: 12px;
    line-height: 1.6;
    display: inline-block;
    color: var(--text-grey);
}

ul.btnRadios .btn.active::after {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f058';
    font-size: 14px;
    background-color: transparent;
    border: none;
    color: var(--primary);
    margin-bottom: 4px;
}

ul.btnRadios .btn.active {
    border: 1px solid var(--border-active);
    box-shadow: var(--shadow-active);
    background-color: var(--bg-white);
}

ul.btnRadios .btn.active .icon {
    border: 1px solid var(--border-active);
}

ul.btnRadios .btn.active .icon i,
ul.btnRadios .btn.active .text p {
    color: var(--primary);
}

ul.btnRadios .btn:hover {
    border: 1px solid var(--border-hover);
}





.password-container {
    width: 300px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

.strength-meter {
    width: 97%;
    height: 6px;
    text-align: center;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s;
}

.strength-text {
    flex-shrink: 0;
    font-size: 14px;
    margin-left: 5px;
    color: #787878;
    font-weight: bold;
}

.img-qrCode {
    position: relative;
}


/* 992以下 */
@media (max-width: 991.98px) {

    html::before,
    html::after,
    body::before,
    body::after {
        display: none;
    }

    .logoMark {
        display: none;
    }

    .contentWrap {
        width: 90%;
        max-height: 90%;
    }
}

/* 576以下 */
@media (max-width: 575.98px) {
    ul.btnRadios li{
        width: 100%;
    }
}

.customModal-header {
    background-color: #126872 !important;
    border-radius: 15px 15px 0 0;
}

.customModal-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.customModal-header .btn-closeModal {
    color: white;
    background: transparent;
    border: 0;
}

.customModal-body td {
    font-size: 1.25rem;
    font-weight: 700;
}

.customModal-body p {
    font-size: 1.25rem;
}

.customModal-footer button {
    background: #126872;
    color: #fff;
    border: 0;
    border-radius: 50px;
    font-size: 1.25rem;
    padding: 5px 30px;
}

/* ------------- footer ------------- */
.footer-body {
    padding-left: 1rem;
    min-height: 74px;
    background: #fff;
}

.footer-btn-group {
    gap: 0.8rem;
    flex-direction: row;
    align-items: center;
    @media (max-width: 600px) {
        flex-direction: column;
        align-items: start;
    }
}

.footer-btn {
    border: 1px solid #176c75;
    color: #176c75;
    height: 36px;
    background: #fff;
    border-radius: 4px;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    font-weight: 500;
}

.footer-btn:hover {
    background: #176c75;
    color: #fff;
    transition: 0.2s;
}

.footer-text-splitter {
    color: #176c75;
    font-size: 1.5rem;
}

.footer-bottom {
    min-height: 27px;
    background: #176c75;
    padding-left: 1rem;
}

.footer-copyright {
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.1rem;
}