/*
|--------------------------------------------------------------------------
| Public Receipt - Glass Style
|--------------------------------------------------------------------------
|
| NSYSU 線上收付款系統
| 繳款人下載繳費證明
|
*/


/*
|--------------------------------------------------------------------------
| 1. Page Background
|--------------------------------------------------------------------------
*/

body.public-receipt-page {
    margin: 0;

    min-height: 100vh;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.08)
        ),
        url('../images/bg03.jpg');

    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;

    color: #1f2937;

    font-family:
        "Microsoft JhengHei",
        "Segoe UI",
        "PingFang TC",
        sans-serif;
}


/*
|--------------------------------------------------------------------------
| 2. Page Wrapper
|--------------------------------------------------------------------------
*/

.public-receipt-page-wrapper {
    box-sizing: border-box;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 28px 18px;
}


/*
|--------------------------------------------------------------------------
| 3. Glass Shell
|--------------------------------------------------------------------------
*/

.public-receipt-shell {
    box-sizing: border-box;

    width: min(
        760px,
        100%
    );

    margin: 0 auto;

    background:
        rgba(
            255,
            255,
            255,
            0.56
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.56
        );

    border-radius: 18px;

    box-shadow:
        0 18px 42px
        rgba(
            15,
            23,
            42,
            0.14
        ),

        0 4px 12px
        rgba(
            15,
            23,
            42,
            0.06
        ),

        inset 0 1px 0
        rgba(
            255,
            255,
            255,
            0.60
        );

    backdrop-filter:
        blur(18px)
        saturate(155%);

    -webkit-backdrop-filter:
        blur(18px)
        saturate(155%);

    overflow: hidden;
}


/*
|--------------------------------------------------------------------------
| 4. Header
|--------------------------------------------------------------------------
*/

.public-receipt-header {
    display: flex;

    align-items: center;
    justify-content: center;

    padding: 24px 28px;

    text-align: center;

    background:
        rgba(
            255,
            255,
            255,
            0.46
        );

    border-bottom:
        1px solid
        rgba(
            130,
            140,
            150,
            0.28
        );
}

.public-receipt-header-brand {
    width: 100%;

    text-align: center;
}

.public-receipt-header-school {
    margin-bottom: 7px;

    color: #334e68;

    font-family:
        "DFKai-SB",
        "標楷體",
        "BiauKai",
        serif;

    font-size: 1.3rem;

    line-height: 1.45;

    letter-spacing: 0.08em;
}

.public-receipt-header-school-en {
    margin-left: 10px;

    color: #64748b;

    font-family:
        "Times New Roman",
        serif;

    font-size: 1rem;

    font-weight: 400;

    letter-spacing: 0.04em;
}

.public-receipt-header-title {
    color: #315b82;

    font-family:
        "DFKai-SB",
        "標楷體",
        "BiauKai",
        serif;

    font-size: 1.75rem;

    font-weight: 700;

    line-height: 1.45;

    letter-spacing: 0.08em;

    text-shadow:
        0 1px 0
        rgba(
            255,
            255,
            255,
            0.85
        );
}

.public-receipt-header-title-en {
    margin-top: 3px;

    color: #64748b;

    font-family:
        "Times New Roman",
        serif;

    font-size: 0.96rem;

    font-style: italic;

    line-height: 1.4;

    letter-spacing: 0.025em;
}


/*
|--------------------------------------------------------------------------
| 5. Main Content
|--------------------------------------------------------------------------
*/

.public-receipt-content {
    padding: 30px;
}

.public-receipt-card {
    padding: 24px 26px;

    background:
        rgba(
            255,
            255,
            255,
            0.56
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.58
        );

    border-radius: 14px;

    box-shadow:
        0 8px 20px
        rgba(
            15,
            23,
            42,
            0.05
        );
}

.public-receipt-content-header {
    margin-bottom: 26px;

    text-align: center;
}

.public-receipt-content-title {
    margin:
        0
        0
        8px;

    color: #1f2937;

    font-size: 1.45rem;

    line-height: 1.45;
}

.public-receipt-content-description {
    margin: 0;

    color: #64748b;

    line-height: 1.65;
}


/*
|--------------------------------------------------------------------------
| 6. Form
|--------------------------------------------------------------------------
*/

.public-receipt-form {
    display: flex;

    flex-direction: column;

    gap: 22px;
}

.public-receipt-form-group {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.public-receipt-label {
    color: #334155;

    font-size: 0.96rem;

    font-weight: 700;

    line-height: 1.4;
}

.public-receipt-input {
    box-sizing: border-box;

    width: 100%;

    min-height: 44px;

    padding:
        9px
        12px;

    background:
        rgba(
            255,
            255,
            255,
            0.72
        );

    border:
        1px solid
        rgba(
            130,
            140,
            150,
            0.42
        );

    border-radius: 9px;

    color: #1f2937;

    font-family: inherit;
    font-size: 1rem;

    outline: none;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.public-receipt-input:focus {
    background:
        rgba(
            255,
            255,
            255,
            0.90
        );

    border-color:
        rgba(
            56,
            96,
            150,
            0.72
        );

    box-shadow:
        0 0 0 3px
        rgba(
            56,
            96,
            150,
            0.10
        );
}

.public-receipt-help {
    color: #64748b;

    font-size: 0.82rem;

    line-height: 1.55;
}


/*
|--------------------------------------------------------------------------
| 7. reCAPTCHA
|--------------------------------------------------------------------------
*/

.public-receipt-recaptcha {
    display: flex;

    justify-content: center;

    padding-top: 2px;
}


/*
|--------------------------------------------------------------------------
| 8. Buttons
|--------------------------------------------------------------------------
*/

.public-receipt-actions {
    display: flex;

    justify-content: center;

    padding-top: 2px;
}

.public-receipt-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    min-width: 150px;
    min-height: 42px;

    padding:
        8px
        18px;

    border:
        1px solid
        transparent;

    border-radius: 9px;

    font-family: inherit;
    font-size: 0.95rem;

    line-height: 1.4;

    cursor: pointer;

    white-space: nowrap;

    appearance: none;
    -webkit-appearance: none;
}

.public-receipt-button-primary {
    background:
        rgba(
            56,
            96,
            150,
            0.90
        );

    color: #ffffff;

    border-color:
        rgba(
            47,
            79,
            120,
            0.70
        );

    box-shadow:
        0 4px 12px
        rgba(
            47,
            79,
            120,
            0.14
        );
}

.public-receipt-button-primary:hover {
    background:
        rgba(
            47,
            79,
            120,
            0.96
        );
}

.public-receipt-actions {
    display: flex;

    justify-content: center;

    gap: 12px;

    padding-top: 2px;
}

.public-receipt-button-secondary {
    background:
        rgba(
            255,
            255,
            255,
            0.68
        );

    color: #374151;

    border-color:
        rgba(
            130,
            140,
            150,
            0.42
        );

    text-decoration: none;
}

.public-receipt-button-secondary:hover {
    background:
        rgba(
            255,
            255,
            255,
            0.86
        );

    text-decoration: none;
}


/*
|--------------------------------------------------------------------------
| 9. Validation Alert
|--------------------------------------------------------------------------
*/

.public-receipt-alert {
    margin-bottom: 22px;

    padding:
        12px
        14px;

    background:
        rgba(
            254,
            242,
            242,
            0.82
        );

    border:
        1px solid
        rgba(
            185,
            28,
            28,
            0.20
        );

    border-radius: 9px;

    color: #991b1b;

    font-size: 0.9rem;

    line-height: 1.65;
}


/*
|--------------------------------------------------------------------------
| 10. Notice
|--------------------------------------------------------------------------
*/

.public-receipt-notice {
    margin-top: 26px;

    padding:
        15px
        16px;

    background:
        rgba(
            255,
            255,
            255,
            0.42
        );

    border:
        1px solid
        rgba(
            130,
            140,
            150,
            0.20
        );

    border-radius: 9px;

    color: #64748b;

    font-size: 0.82rem;

    line-height: 1.65;

    text-align: center;
}

.public-receipt-home-link {
    display: inline-block;

    margin-top: 8px;

    color: #315b82;

    text-decoration: none;
}

.public-receipt-home-link:hover {
    text-decoration: underline;
}


/*
|--------------------------------------------------------------------------
| 11. Responsive
|--------------------------------------------------------------------------
*/

@media (
    max-width: 760px
) {

    .public-receipt-page-wrapper {
        padding:
            16px
            10px;
    }

    .public-receipt-header {
        padding: 20px;
    }

    .public-receipt-content {
        padding:
            22px
            18px;
    }

    .public-receipt-card {
        padding:
            22px
            18px;
    }

}


@media (
    max-width: 480px
) {

    .public-receipt-shell {
        border-radius: 14px;
    }

    .public-receipt-header-school-en {
        display: block;

        margin:
            4px
            0
            0;
    }

    .public-receipt-header-title {
        font-size: 1.5rem;
    }

    .public-receipt-recaptcha {
        justify-content: flex-start;

        overflow-x: auto;
    }

	.public-receipt-actions {
        flex-direction: column;
    }

    .public-receipt-button {
        width: 100%;
    }

}