* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}
html {
    font-size: 62.5%;
}
body {
    position: relative;
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(120deg, rgba(8, 23, 38, 0.78), rgba(15, 82, 96, 0.52)),
        linear-gradient(0deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08));
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 4.8rem 4.8rem;
    mask-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.58), transparent 72%);
    -webkit-mask-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.58), transparent 72%);
    pointer-events: none;
}
#header{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.39);
    background: rgba(6, 18, 32, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-left-radius: 50% 100%;
    border-bottom-right-radius: 50% 100%;
}
#header img {
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    box-shadow: 0 0 1rem rgba(255, 255, 255, 0.79);
}
#main {
    position: fixed;
    top: 10rem;
    bottom: 4rem;
    left: 0;
    width:100%;
    height: calc(100% - 14rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
#main .login-container {
    position: relative;
    width: 90rem;
    height: 42rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.59);
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 0 70px rgba(131, 151, 182, 0.49);
}
.login-container .text-login {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    background:
        linear-gradient(145deg, rgba(15, 29, 48, 0.96), rgba(13, 91, 93, 0.86)),
        linear-gradient(45deg, rgba(216, 160, 47, 0.16), rgba(255, 255, 255, 0));
}
.login-container .text-login::before {
    content: "";
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 9rem;
    height: 9rem;
    border-top: 2px solid rgba(216, 160, 47, 0.72);
    border-right: 2px solid rgba(216, 160, 47, 0.72);
}
.login-container .text-login::after {
    content: "";
    position: absolute;
    left: 3rem;
    bottom: 3rem;
    width: 12rem;
    height: 0.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #d8a02f, #0f9a9a);
}
.login-eyebrow {
    position: absolute;
    top: 18rem;
    left: 4rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
    color: #f7d58a;
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 0;
    text-transform: uppercase;
}
.text-login h1 {
    position: absolute;
    top: 20.5rem;
    left: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    font-family: "Playfair Display", serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0;
}
.text-login p {
    position: absolute;
    top: 25rem;
    left: 4rem;
    font-family: "Times New Roman", Times, serif;
    color: rgba(255, 255, 255, 0.79);
    font-size: 1.6rem;
    padding-right: 3rem;
}
.login-container .form-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.5);
}
.login-error {
    padding: 0.5rem;
    font-family: "Times New Roman", Times, serif;
    border: 1px solid rgba(180, 35, 24, 0.28);
    border-radius: 0.8rem;
    color: #b42318;
    background:#fff4f2;
    font-size: 1.4rem;
}
.form-login form {
    width: 80%;
}
.authenticated-panel {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
}
.authenticated-message {
    margin-bottom: 0.8rem;
    color: #162033;
    font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
    font-size: 1.7rem;
    text-align: center;
}
.authenticated-message strong {
    font-family: inherit;
}
.authenticated-panel .login-action {
    width: 100%;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 0.8rem;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}
.authenticated-panel .login-action-primary {
    color: #fff;
    background: linear-gradient(135deg, #0f7d80, #0f9a9a);
    box-shadow: 0 1rem 2.4rem rgba(15, 125, 128, 0.2);
}
.authenticated-panel .login-action-logout {
    display: flex;
    padding: 0 1rem;
    color: #a5281c;
    border-color: rgba(180, 35, 24, 0.28);
    background: #fff4f2;
}
.authenticated-panel .login-action:hover,
.authenticated-panel .login-action:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 1rem 2.8rem rgba(12, 22, 38, 0.16);
}
.form-login button {
    width: 100%;
    height: 5rem;
    display: grid;
    grid-template-columns: 4rem 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem 0 4rem;
    border: 1px solid #d9e2ef;
    border-radius: 0.8rem;
    color: #162033;
    background: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}
.form-login button:hover,
.form-login button:focus-visible {
    border-color: rgba(15, 154, 154, 0.55);
    box-shadow: 0 0 2.8rem rgba(12, 22, 38, 0.12);
    transform: translateY(-1px);
}
.form-login button:focus-visible {
    outline: 0.3rem solid rgba(15, 154, 154, 0.24);
    outline-offset: 0.3rem;
}
.form-login button span {
    width: 3.6rem;
    height: 3.6rem;
    display: grid;
    place-items: center;
    border-radius: 0.8rem;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(217, 226, 239, 0.9);
}
.login-container .form-login button span img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
}
.form-login button p {
    font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
    text-align: left;
}
.form-login .social-button.zalo {
    border-color: rgba(0, 104, 255, 0.72);
    color: #ffffff;
    background: linear-gradient(135deg, #0068ff, #0c8bff);
}
.form-login .social-button.zalo:hover,
.form-login .social-button.zalo:focus-visible {
    border-color: #0068ff;
    box-shadow: 0 0 2.8rem rgba(0, 104, 255, 0.24);
}
.line {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.2rem;
    color: var(--muted);
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}
.line span {
    display: block;
    height: 0.5rem;
    background: #275698;
}
.line strong {
    font-family: "Times New Roman", Times, serif;
    font-size: 1.4rem;
    font-weight: 500;
}
.policy {
    width: 56rem;
    height: 4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.22);
    font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
}
.policy p {
    font-family: inherit;
    font-size: 1.4rem;
}
.policy a {
    font-family: inherit;
    color: #ffe2a0;
    font-weight: 500;
    text-decoration: none;
}
.policy a:hover,
.policy a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}
#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 4rem;
    display: grid;
    place-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.39);
    background: rgba(6, 18, 32, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.footer p {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.88);
    font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: 500;
    white-space: nowrap;
}
.footer p .footer-name {
    font-family: inherit;
    font-weight: 800;
    background: linear-gradient(135deg, #e94646, #ffb033, #fff275, #67d87b, #ffffff, #37bdd0, #8f67dc, #d45959);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 0 0.2rem 0 0.5rem;
    animation-name: footer-name 5s ease infinite;
}
@keyframes footer-name {
    0% {
        background-position:0% 50%;
    }
    100% {
        background-position:200% 50%;
    }
}

@media (max-width: 820px) {
    #main {
        justify-content: flex-start;
        padding-top: 11.2rem;
    }

    #main .login-container {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .login-container .text-login {
        min-height: 25rem;
        padding: 3.2rem;
    }

    .text-login h1 {
        max-width: 100%;
        font-size: 3rem;
    }

    .text-login p {
        max-width: 100%;
        padding-bottom: 2.2rem;
    }

    .login-container .form-login {
        padding: 3.2rem;
    }
}

@media (max-width: 520px) {
    html {
        font-size: 58%;
    }

    #header {
        height: 7.8rem;
    }

    #header img {
        width: 5.4rem;
        height: 5.4rem;
    }

    #main {
        gap: 1.8rem;
        min-height: calc(100dvh - 4.8rem);
        padding: 9.6rem 1.4rem 7.4rem;
    }

    .login-container .text-login,
    .login-container .form-login {
        padding: 2.4rem;
    }

    .login-container .text-login {
        min-height: 22rem;
    }

    .login-container .text-login::before {
        top: 2.2rem;
        right: 2.2rem;
        width: 6.4rem;
        height: 6.4rem;
    }

    .login-container .text-login::after {
        left: 2.4rem;
        bottom: 2.4rem;
        width: 8.8rem;
    }

    .text-login h1 {
        font-size: 2.8rem;
    }

    .form-login button {
        min-height: 5.4rem;
        grid-template-columns: 3.4rem 1fr;
        padding: 0 1.4rem;
    }
}
