*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    margin: 0px;
    padding: 0px;
    height: 100%;
    width: 100%;
    overscroll-behavior-y: contain;
}

.wrapper {
    min-height: 100%;
}

@media (max-width: 2560px) {
    html {
        font-size: 18px;
    }
}
@media (max-width: 1920px) {
    html {
        font-size: 16px;
    }
}
@media (max-width: 1600px) {
    html {
        font-size: 14px;
    }
}
@media (max-width: 1440px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 1366px) {
    html {
        font-size: 13px;
    }
}

@media (max-width: 1280px) {
    html {
        font-size: 12px;
    }
}

@media (max-width: 1024px) {
    html {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #fff3e6;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    overscroll-behavior-y: contain;
}

.container {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    position: relative;
    /* background: url('../../assets/Dr.ai-background.webp') no-repeat center center; */
    background: url('../../assets/Dr.ai-background-o2.webp') no-repeat center center; ;
    background-size: cover;
    /* background: linear-gradient(135deg, #ffecd2 0%, #b58778 100%); */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
@media screen and (max-width:480px) and (orientation: portrait) {
    .container {
        background: url('../../assets/Dr.ai-background-o2.webp');
    }
}


.login-container {
    width: 80%;
    max-width: 750px;
    background: rgba(255, 255, 255, 0.6);
    /* box-shadow: 0 0 15px rgba(95, 199, 209, 0.4); */
    box-shadow: 0 0 15px rgba(240, 195, 144, 0.4);
    padding: 30px;
    border-radius: 40px;
    text-align: center;
    /* background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); */
    position: relative;
    z-index: 1;
}

@media screen and (max-width:480px) and (orientation: portrait) {
    .login-container {
        border-radius: 0px;
        height: 100%;
        width:100%;
        box-shadow: none;
        padding: 30px 0px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

.login-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px;
}

.login-container img.logo {
    /* position: absolute; */
    top: 0px;
    left: 20px;
    width: 80px;
    /* height: 80px; */
    height: auto;
}

.login-container h2 {
    margin-top: 40px;
    /* color:#324B72; */
    color:rgba(50, 75, 114, 0.9);
}

.login-container h3 {
    margin-bottom: 20px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: bold;
    color: rgba(50,75,114,0.6);
    /* text-shadow: 5px 3px 10px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.12); */
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 70%;
    padding: 10px 20px;
    margin: 10px 0;
    border: 0px solid #918e8e;
    border-radius: 15px;
    font-size: 0.95rem;
    color: rgba(50, 75, 114, 1);
    font-weight: 700;
    background-color: rgba(228, 194, 147, 0.2)
}
.login-container input[type="text"]::placeholder,
.login-container input[type="password"]::placeholder {
    font-size: 0.9rem;
    font-weight: bold;
    color: #324B72;
    opacity: 0.3;
}

.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus {
    outline: none;
    border: 1px solid rgba(228, 194 ,147, 0.5);
    box-shadow: 0 0 5px rgba(228 ,194 ,147, 0.5);
}
.login-container .row {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0 10px 0;
    padding: 10px;
    border: #2d4a89;
}

.login-container select {
    width: 50%;
    padding: 10px;
    border: 0px solid #ccc;
    border-radius: 5px;
    font-size: 1.00rem;
    /* box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); */
    box-shadow: 5px 3px 5px rgba(0, 0, 0, 0.36), 0 1px 2px rgba(0, 0, 0, 0.24);
    background-color: #f3efea;
    text-align: left;
}

.login-container button {
    width: 40%;
    /* color: white; */
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    background-color: rgba(50, 75, 114, 0.9);
    /* margin-left: 20px; */
    /*#324B72*/
    padding: 10px 10px 10px 10px;
    color: #FFFFFF;
}

.login-container button:hover {
    background-color: #5FC7D1;
}

.error-message {
    color: red;
    margin-top: 10px;
    display: none;
}

.language-switcher {
    font-size: 0.85rem;
    font-weight: bold;
}

.lang-option {
    cursor: pointer;
    color: rgba(50, 75, 114, 1);;
}

.lang-option.active {
    /* text-decoration: underline; */
    color: rgba(10, 120, 0, 0.6);
}

.additional-features {
    margin-top: 50px;
    text-align: center;
}

.feature-link {
    color: rgba(50, 75, 114, 0.9);
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    margin: 0 10px;
    transition: color 0.3s ease;
    font-size:0.85rem;
}

.feature-link:hover {
    color: #6FB92C;
    text-decoration: underline;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #ccc;
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    /* 新增這一行 */
    animation: fadeIn 0.3s ease-in-out;
}

@media screen and (max-width:480px) and (orientation: portrait) {
    .modal-content {
        width: 100%;
        border-radius: 0px;
    }
}

#eyeIcon {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 1.12rem;
}

#reg-eyeIcon,
#conf-eyeIcon {
    position: absolute;
    right: 5%;
    top: 55%;
    cursor: pointer;
    color: #999;
    font-size: 1.12rem;
}

.password-container {
    position: relative;
}

.required::after {
    content: " *";
    color: red;
    font-weight: bold;
    margin-left: 5px;
}

.register-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.register-modal-content {
    background-color: #fff;
    margin: 3% auto;
    padding: 20px;
    border: 1px solid #ccc;
    width: 50%;
    /* max-height: 80vh; */
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-in-out;
}

@media screen and (max-width:480px) and (orientation: portrait) {
    .register-modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0px;
        box-shadow: none;
    }
}

.address-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#street {
    flex: 1 1 45%;
}

#aptSte {
    flex: 1 1 25%;
}

#city {
    flex: 1 1 30%;
    min-width: 100px;
}

#state {
    flex: 1 1 25%;
    min-width: 80px;
}

#zipCode {
    flex: 1 1 15%;
    min-width: 80px;
}

/* 動畫效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

h2 {
    font-size: 1.50rem;
    color: #333;
    margin-bottom: 10px;
}

hr {
    border: 0;
    height: 1px;
    background-color: #ddd;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 5px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    font-size: 0.88rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #007BFF;
    outline: none;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.modal-btn {
    padding: 10px 20px;
    font-size: 1.00rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cancel-btn {
    background-color: #6c757d;
    color: white;
    margin-right: 10px;
}

.cancel-btn:hover {
    background-color: #5a6268;
}

.submit-btn {
    background-color: #007BFF;
    color: white;
}

.submit-btn:hover {
    background-color: #0056b3;
}

.error-message {
    color: red;
    font-size: 0.75rem;
    display: none;
    margin-top: 5px;
}

.close,
.reg-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 2.00rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close,
.reg-close:hover,
.close,
.reg-close:focus {
    color: #000;
    text-decoration: none;
}


#verificationModal .modal-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

#verificationModal .modal-btn {
    padding: 10px 20px;
    font-size: 1.00rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#closeVerificationBtn {
    background-color: #2d4a89;
    color: white;
    margin-right: 10px;
}

#closeVerificationBtn:hover {
    background-color: #39bc39;
}

.terms-modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-items: center;
}

.terms-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 10px;
    border: 1px solid #ccc;
    width: 80%;
    height: 85%;
    /* max-height: 90%; */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

@media screen and (max-width:480px) and (orientation: portrait) {
    .terms-modal-content {
        margin: 0;
        border-radius: 0px;
        width: 100%;
        height: 100%;
        max-height: 100%;
        box-shadow: none;
    }
}

.terms-agreement {
    text-align: center;
    margin-top: 15px;
    font-size: 0.75rem;
    color: #333;
}

.terms-agreement a {
    color: #005BAB;
    text-decoration: underline;
    cursor: pointer;
}

.terms-agreement a:hover {
    color: #6FB92C;
}

#reg-termsLabel {
    cursor: pointer;
}

.attention-icon {
    color: #059629ea;
    font-size: 1.25rem;
    margin-right: 8px;
}

.termsContent,
.privacyContent {
    flex: 1;
    height: 75%;
    /* max-height: 60%; */
    overflow-y: auto;
    /* margin-top: 15px; */
    /* margin-bottom: 15px; */
    margin: 10px 0;
    padding-right: 10px;
}

@media screen and (max-width:480px) and (orientation: portrait) {

    .termsContent,
    .privacyContent {
        max-height: none;
    }
}


.terms-agreement input[type="checkbox"] {
    margin-right: 6px;
    transform: scale(1.8);
    /* 大部分瀏覽器 */
    -webkit-transform: scale(1.8);
    /* Safari */
    zoom: 1.8;
    /* 對於支持 zoom 的瀏覽器，如 IE、Chrome */
    transform: translateY(2px);
    cursor: pointer;
}

.terms-agreement input[type="checkbox"]:checked {
    accent-color: green;
}

.termsNotice {
    display: block;
    font-size: 1.125rem;
    color: #bd4141;
    font-weight: bold;
    margin-top: 3px;
    margin-right: 20px;
    padding: 7px 7px 6px 7px;
    border-radius: 5px;
    /* background-color: #CFCFCB; */
    cursor: default;
    text-align: center;
}

#termsAgreeCheckbox,
#privacyAgreeCheckbox {
    transform: scale(1.5);
    /* 大部分瀏覽器 */
    -webkit-transform: scale(1.5);
    /* Safari */
    zoom: 1.5;
    /* 對於支持 zoom 的瀏覽器，如 IE、Chrome */
    transform: translateY(2px);
    cursor: pointer;
    /* display: none; */
}

#termsAgreeCheckbox:checked,
#privacyAgreeCheckbox:checked {
    accent-color: green;
}

.close-bottom {
    /* display:block; */
    /* position: fixed; */
    bottom: 15px;
    right: 15px;
    color: #0c0a0a;
    font-size: 2.00rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
    float: right;
}

.agreeContent-agreement {
    /* text-align: right; */
    text-align: center;
    /* margin-top: 15px; */
    font-size: 0.88rem;
    color: #333;
}

#termsLabel {
    display: block;
    font-size: 1rem;
    /* margin-right: 100px; */
    color: #668cad;
    font-weight: bold;
    cursor: pointer;
    margin-top: 3px;
    padding: 2px 0px;
    border-radius: 10px;
    /* border: 2px solid rgb(139, 139, 137); */
    background-color: #CFCFCB;
}

#privacyLabel {
    display: block;
    font-size: 1rem;
    color: #668cad;
    font-weight: bold;
    cursor: pointer;
    margin-top: 3px;
    padding: 2px 0px;
    border-radius: 10px;
    background-color: #CFCFCB;
}

#baaLabel {
    font-size: 1.12rem;
    margin-right: 100px;
    color: #005BAB;
    font-weight: bold;
}

#termsAgreeCheckbox,
#privacyAgreeCheckbox,
#baaAgreeCheckbox {
    transform: scale(1.5);
    /* 大部分瀏覽器 */
    -webkit-transform: scale(1.5);
    /* Safari */
    zoom: 1.5;
    /* 對於支持 zoom 的瀏覽器，如 IE、Chrome */
    transform: translateY(2px);
}

/* Promo Modal */
.promo-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    /* left: 5%;
    top: 5%; */
    width: 80%;
    height: 85%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.promo-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.promo-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* 透明按鈕（覆蓋圖片上的字樣） */
.promo-button {
    position: absolute;
    background: transparent;
    border: #000;
    /* background-color: rgba(0, 86, 179, 0.5); */
    cursor: pointer;
}

/* 關閉按鈕樣式 */
.promo-close {
    position: absolute;
    top: 2%;
    right: 2%;
    font-size: 2.50rem;
    font-weight: bold;
    color: rgb(227, 215, 80);
    cursor: pointer;
}

#envMsgModal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#envMsg-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 20px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    /* background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); */
    background: rgba(255,255,255,0.8);
    text-align: center;
}
#env-top-close {
    color: rgba(193, 39, 45, 1);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor:pointer;
}

/* QuickNote login refresh, aligned with the STT workspace UI. */
:root {
    --login-ui-rem: 16px;
    --login-blue: #0086E7;
    --login-blue-hover: #3BAFFF;
    --login-blue-soft: #E7FAFD;
    --login-text: #000000;
    --login-muted: #666666;
    --login-border: #CCCCCC;
    --login-panel: #FFFFFF;
    --login-band: #F7F7F7;
}

html {
    font-size: var(--login-ui-rem) !important;
}

body {
    font-family: Lato, "Helvetica Neue", Arial, sans-serif;
    background: #FFFFFF;
    color: var(--login-text);
    min-height: 100%;
}

.container {
    align-items: flex-start;
    background: var(--login-band);
    box-shadow: none;
    min-height: 100%;
    overflow-y: auto;
    padding: 32px 24px;
}

.login-container {
    width: min(100%, 480px);
    max-width: 480px;
    margin: auto;
    padding: 32px 40px 36px;
    background: var(--login-panel);
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.login-header {
    margin: 0 0 24px;
    min-height: 48px;
    gap: 20px;
}

.login-container img.logo {
    width: 104px;
    height: auto;
    display: block;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #B7EAEC;
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--login-blue);
    font-size: 0.875rem;
    line-height: 1;
    white-space: nowrap;
}

.lang-option {
    color: var(--login-blue);
    font-weight: 700;
}

.lang-option.active {
    color: #000000;
}

.login-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.login-container h2 {
    margin: -8px 0 14px;
    color: var(--login-text);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.login-container h3 {
    margin: 0 0 20px;
    color: var(--login-muted);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.login-body > input[type="text"],
.login-body > .input-icon-container,
.login-body > .password-container,
.login-container .row {
    width: 100%;
    max-width: none;
}

.login-container input[type="text"],
.login-container input[type="password"],
.form-control {
    width: 100%;
    min-height: 44px;
    margin: 0 0 12px;
    padding: 9px 12px;
    border: 1px solid var(--login-border);
    border-radius: 8px;
    background-color: #FFFFFF;
    color: var(--login-text);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    box-shadow: none;
}

.login-body > .input-icon-container,
.login-body > .password-container {
    position: relative;
}

.login-body .input-icon {
    position: absolute;
    left: 12px;
    top: 22px;
    transform: translateY(-50%);
    color: #8F8F8F;
    font-size: 1rem;
    pointer-events: none;
}

.login-body > .input-icon-container input[type="text"],
.login-body > .password-container input[type="password"] {
    padding-left: 38px;
}

.login-body > .password-container input[type="password"] {
    padding-right: 42px;
}

.login-container input[type="text"]::placeholder,
.login-container input[type="password"]::placeholder {
    color: #8F8F8F;
    font-size: 1rem;
    font-weight: 400;
    opacity: 1;
}

.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus,
.form-control:focus {
    border-color: var(--login-blue);
    box-shadow: 0 0 0 3px rgba(0, 134, 231, 0.15);
}

#eyeIcon {
    right: 12px;
    color: #8F8F8F;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 16px;
    font-size: 0.875rem;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--login-muted);
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
}

.remember-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--login-blue);
}

.login-container .row {
    display: block;
    margin: 8px 0 0;
    padding: 0;
}

.login-container button,
.modal-btn,
#closeVerificationBtn,
#closeResetBtn {
    min-height: 40px;
    border: none;
    border-radius: 4px;
    background-color: var(--login-blue);
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
    box-shadow: none;
}

.login-container button {
    width: 100%;
    padding: 8px 16px;
}

.login-container button:hover,
.submit-btn:hover,
#closeVerificationBtn:hover,
#closeResetBtn:hover {
    background-color: var(--login-blue-hover);
}

.cancel-btn {
    background-color: #E6E6E6;
    color: #555555;
}

.cancel-btn:hover {
    background-color: #D8D8D8;
}

.login-footer {
    margin-top: 16px;
    text-align: center;
}

.error-message {
    color: #C62828;
    font-size: 0.875rem;
}

.additional-features {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    line-height: 1.8;
}

.feature-link,
.terms-agreement a {
    color: var(--login-blue);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
}

.feature-link:hover,
.terms-agreement a:hover {
    color: var(--login-blue-hover);
    text-decoration: underline;
}

.terms-agreement {
    margin-top: 16px;
    color: var(--login-muted);
    font-size: 0.75rem;
    line-height: 1.6;
}

.attention-icon {
    color: var(--login-blue);
}

.modal,
.register-modal,
.terms-modal {
    background-color: rgba(0, 0, 0, 0.35);
}

.modal-content,
.register-modal-content,
.terms-modal-content {
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.register-modal-content {
    width: min(92%, 720px);
}

h2 {
    color: var(--login-text);
    line-height: 1.5;
}

hr {
    background-color: #E6E6E6;
}

.form-group label {
    color: var(--login-text);
    font-size: 0.875rem;
}

.modal-buttons {
    gap: 10px;
}

.modal-btn {
    padding: 8px 16px;
}

@media screen and (max-width: 640px) {
    .container {
        padding: 16px;
    }

    .login-container {
        width: 100%;
        padding: 24px;
    }

    .login-header {
        align-items: flex-start;
        gap: 12px;
    }

    .login-container img.logo {
        width: 96px;
    }

    .login-container h2 {
        font-size: 1.25rem;
    }

    .login-container h3 {
        font-size: 1.125rem;
    }

    .login-options {
        gap: 10px;
    }

    .additional-features {
        flex-wrap: wrap;
        gap: 4px 10px;
    }
}
