﻿html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "Microsoft JhengHei", "微軟正黑體", Arial, sans-serif;
    color: #12304a;
    background: #eef7ff;
}

/* 超連結標示文字 */
a:link {
    text-decoration: none;
    color: #0065a8;
}

a:visited {
    text-decoration: none;
    color: #0065a8;
}

a:active {
    text-decoration: none;
    color: #0065a8;
}

a:hover {
    text-decoration: underline;
    color: #d84b2a;
}

* {
    box-sizing: border-box;
}

.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 191, 96, 0.30) 0, rgba(255, 191, 96, 0) 28%),
        radial-gradient(circle at 92% 18%, rgba(41, 151, 255, 0.26) 0, rgba(41, 151, 255, 0) 32%),
        linear-gradient(145deg, #f7fbff 0%, #e8f6ff 46%, #dff3ed 100%);
}

.login-hero {
    padding: 24px 18px 22px 18px;
    background: linear-gradient(135deg, #ffbc5b 0%, #ffd37a 45%, #fff0c7 100%);
    border-bottom: 1px solid rgba(167, 111, 33, 0.20);
}

.login-hero-inner {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    display: table;
}

.brand-logo-panel {
    display: table-cell;
    width: 116px;
    vertical-align: middle;
}

.brand-logo {
    width: 96px;
    height: 96px;
    display: block;
    padding: 8px;
    background: rgba(255, 255, 255, 0.70);
    border-radius: 28px;
    box-shadow: 0 12px 28px rgba(94, 63, 18, 0.18);
}

.brand-copy {
    display: table-cell;
    vertical-align: middle;
    padding-left: 26px;
    text-align: left;
}

.brand-school {
    color: #111111;
    font-size: 44px;
    line-height: 1.1;
    letter-spacing: 16px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-copy h1 {
    margin: 12px 0 0 0;
    color: #111111;
    font-size: 28px;
    line-height: 1.35;
    letter-spacing: 4px;
    font-weight: 800;
}

.brand-subtitle {
    display: inline-block;
    margin-top: 12px;
    padding: 5px 16px;
    color: #7b4a00;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(123, 74, 0, 0.12);
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: bold;
}

.test-alert {
    width: 100%;
    padding: 12px 16px;
    color: #ffffff;
    background: #b7321f;
    font-size: 20px;
    line-height: 1.5;
    letter-spacing: 1px;
    text-align: center;
    font-weight: bold;
}

.login-main {
    padding: 34px 16px 22px 16px;
}

.login-shell {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.section-title {
    margin: 0 auto 18px auto;
    color: #ffffff;
    background: linear-gradient(135deg, #1aa58a 0%, #50b849 100%);
    border-radius: 24px;
    box-shadow: 0 16px 35px rgba(25, 108, 93, 0.22);
    padding: 16px 24px;
    text-align: center;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 6px;
    font-weight: bold;
}

.section-icon {
    display: inline-block;
    width: 42px;
    height: 42px;
    margin-right: 12px;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 50%;
}

.section-icon img {
    width: 42px;
    height: 42px;
    display: block;
}

.login-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(40, 120, 170, 0.13);
    border-radius: 26px;
    box-shadow: 0 22px 60px rgba(20, 74, 112, 0.18);
}

.login-card-header {
    padding: 26px 34px 20px 34px;
    background:
        linear-gradient(135deg, rgba(19, 154, 180, 0.10) 0%, rgba(255, 185, 82, 0.10) 100%),
        #ffffff;
    border-bottom: 1px solid #e6eef5;
    text-align: left;
}

.login-card-title {
    color: #0b5278;
    font-size: 25px;
    line-height: 1.4;
    letter-spacing: 3px;
    font-weight: bold;
}

.login-card-note {
    margin-top: 7px;
    color: #597184;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 1px;
}

.login-form-area {
    padding: 28px 34px 32px 34px;
}

.form-row {
    display: flex;
    width: 100%;
    margin-bottom: 17px;
    align-items: center;
}

.form-row label {
    display: block;
    flex: 0 0 122px;
    width: 122px;
    padding-right: 18px;
    color: #006a96;
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: 5px;
    font-weight: bold;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.login-input {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 10px 14px;
    color: #1f3344;
    background: #f8fbfd;
    border: 1px solid #bfd0dc;
    border-radius: 13px;
    font-family: "Microsoft JhengHei", "微軟正黑體", Arial, sans-serif;
    font-size: 18px;
    letter-spacing: 1px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.login-input:focus {
    background: #ffffff;
    border-color: #24a1c7;
    box-shadow: 0 0 0 4px rgba(36, 161, 199, 0.14);
}

.password-wrap {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    position: relative;
}

.password-input {
    display: block;
    width: 100%;
    padding-right: 48px;
}

.password-eye {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    cursor: pointer;
    opacity: 0.70;
}

.password-eye:hover {
    opacity: 1;
}

.help-area {
    margin: 8px 0 0 0;
    padding: 16px 18px;
    background: #f7fbff;
    border: 1px dashed #b9d6eb;
    border-radius: 16px;
    text-align: left;
    line-height: 1.8;
}

.help-link {
    display: block;
    color: #d94b24 !important;
    font-size: 15px;
    letter-spacing: 1px;
}

.help-text {
    margin-top: 4px;
    color: #0065d0;
    font-size: 15px;
    letter-spacing: 1px;
}

.login-action {
    padding-top: 22px;
}

.login-button {
    width: 100%;
    min-height: 56px;
    border: 0 none;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #ff6a2a 0%, #f14321 100%);
    box-shadow: 0 14px 28px rgba(220, 78, 34, 0.28);
    cursor: pointer;
    font-family: "Microsoft JhengHei", "微軟正黑體", Arial, sans-serif;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: 8px;
    font-weight: bold;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.login-button:hover {
    filter: brightness(1.04);
    box-shadow: 0 18px 34px rgba(220, 78, 34, 0.34);
}

.login-button:active {
    transform: translateY(1px);
    box-shadow: 0 10px 22px rgba(220, 78, 34, 0.28);
}

.login-footer {
    padding: 20px 12px 26px 12px;
    color: #497189;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 5px;
    white-space: nowrap;
}

/* ModalPopupExtender */
.modalBackground {
    background-color: #0d1d2a;
    filter: alpha(opacity=75);
    opacity: 0.75;
}

.popup-card {
    width: 90%;
    max-width: 520px;
    padding: 0;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.28);
}

.popup-inner {
    padding: 14px 18px 24px 18px;
}

.popup-close {
    width: 100%;
    text-align: right;
}

.popup-close input,
.popup-close img {
    cursor: pointer;
}

.popup-message {
    padding: 12px 12px 20px 12px;
    text-align: center;
}

.popup-text {
    color: #23394d;
    font-size: 20px;
    line-height: 1.8;
    letter-spacing: 1px;
}

.popup-action {
    padding: 0 10px;
}

.popup-button {
    width: 100%;
    min-height: 46px;
    border: 0 none;
    border-radius: 13px;
    color: #ffffff;
    background: #d8462e;
    cursor: pointer;
    font-family: "Microsoft JhengHei", "微軟正黑體", Arial, sans-serif;
    font-size: 19px;
    letter-spacing: 5px;
    font-weight: bold;
}

/* 保留舊頁面可能仍會使用的基本類別 */
.MyFont {
    font-family: "Microsoft JhengHei", "微軟正黑體", Arial, sans-serif;
}

.ImgEYE {
    cursor: pointer;
}

.P_Show {
    width: 90%;
    max-width: 520px;
    padding: 20px;
    background-color: #ffffff;
}

.P_Show_Txt {
    font-family: "Microsoft JhengHei", "微軟正黑體", Arial, sans-serif;
    letter-spacing: 1px;
    font-size: 1.2em;
}

.B_Login {
    font-family: "Microsoft JhengHei", "微軟正黑體", Arial, sans-serif;
    letter-spacing: 5px;
}

@media screen and (max-width: 860px) {
    .login-hero {
        padding: 20px 16px;
    }

    .brand-logo-panel,
    .brand-copy {
        display: block;
        width: 100%;
        padding-left: 0;
        text-align: center;
    }

    .brand-logo {
        margin: 0 auto 14px auto;
        width: 82px;
        height: 82px;
        border-radius: 22px;
    }

    .brand-school {
        font-size: 34px;
        letter-spacing: 8px;
        white-space: normal;
    }

    .brand-copy h1 {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .section-title {
        border-radius: 20px;
        font-size: 24px;
        letter-spacing: 4px;
    }

    .login-card-header,
    .login-form-area {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media screen and (max-width: 560px) {
    .test-alert {
        font-size: 16px;
    }

    .login-main {
        padding: 22px 10px 14px 10px;
    }

    .brand-school {
        font-size: 27px;
        letter-spacing: 5px;
    }

    .brand-copy h1 {
        font-size: 19px;
        letter-spacing: 1px;
    }

    .section-title {
        margin-bottom: 14px;
        padding: 13px 16px;
        font-size: 21px;
        letter-spacing: 2px;
    }

    .section-icon {
        width: 34px;
        height: 34px;
        margin-right: 8px;
    }

    .section-icon img {
        width: 34px;
        height: 34px;
    }

    .login-card {
        border-radius: 20px;
    }

    .login-card-title {
        font-size: 21px;
    }

    .login-card-note {
        font-size: 14px;
    }

    .form-row {
        display: flex;
        width: 100%;
        margin-bottom: 15px;
        align-items: center;
    }

    .form-row label {
        display: block;
        flex: 0 0 92px;
        width: 92px;
        padding: 0 10px 0 0;
        text-align: left;
        vertical-align: middle;
        white-space: nowrap;
        font-size: 16px;
        letter-spacing: 2px;
    }

    .login-input,
    .password-wrap {
        display: block;
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        vertical-align: middle;
    }

    .login-input {
        height: 48px;
        padding-left: 12px;
        padding-right: 12px;
        font-size: 16px;
    }

    .password-input {
        display: block;
        width: 100%;
        padding-right: 46px;
    }

    .login-button {
        min-height: 52px;
        font-size: 21px;
        letter-spacing: 5px;
    }

    .help-link,
    .help-text {
        font-size: 14px;
    }

    .login-footer {
        font-size: 12px;
        letter-spacing: 3px;
    }
}
