/* CYOUNG authentication pages – scoped styles, matches original dark portfolio palette */
:root {
    --auth-bg: #111111;
    --auth-ink: #eeeeee;
    --auth-muted: #999;
    --auth-accent: #c62e2e;
    --auth-line: rgba(238, 238, 238, .16)
}

* {
    box-sizing: border-box
}

html {
    min-height: 100%
}

body.auth-page {
    margin: 0;
    min-height: 100vh;
    background: var(--auth-bg);
    color: var(--auth-ink);
    font-family: "OPPOSans", "Noto Sans SC", Arial, sans-serif;
    line-height: 1.5;
    overflow-x: hidden
}

button,
input {
    font: inherit
}

a {
    color: inherit;
    text-decoration: none
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate
}

.auth-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1
}

.auth-shell::after {
    content: "";
    position: fixed;
    inset: 0;
    opacity: .18;
    pointer-events: none;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E")
}


/* =========================================
   CYOUNG 登录页导航栏
   与作品集导航栏统一
   ========================================= */

.auth-header {

    position: relative;
    isolation: isolate;
    overflow: hidden;

    max-width: 1440px;
    width: calc(100% - 80px);
    margin: 20px auto 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 12px;
    min-height: 0;

    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 300px;

    background: rgba(10, 10, 10, .35);

    backdrop-filter: saturate(30%) blur(6px);
    -webkit-backdrop-filter: saturate(30%) blur(6px);

    box-shadow:
        0 5px 20px rgba(0, 0, 0, .35),
        inset 0 1px 0 rgba(255, 255, 255, .05);
}

/* 毛玻璃颗粒层 */
.auth-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    pointer-events: none;
    border-radius: inherit;

    opacity: .25;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

    background-size: 180px 180px;
    mix-blend-mode: multiply;
}



/* 导航 Logo */
.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;

    flex: auto;
    margin: auto;
    padding: 0 0 0;

    height: 48px;

    position: relative;
    z-index: 1;
    text-decoration: none;
}

.auth-logo img {
    display: block;
    width: auto;
    height: 40px;
    max-width: 150px;
    object-fit: contain;
}

/* 返回作品集胶囊 */
.auth-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    height: 48px;
    padding: 0 22px;

    border: 1px solid var(--border);
    border-radius: 100px;

    background: transparent;
    color: var(--primary);

    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;

    transition:
        color .5s,
        background-color .5s,
        border-color .5s;
}

/* 与作品集 MENU 相同的反色效果 */
.auth-back:hover {
    background-color: var(--primary);
    color: var(--black);
    border-color: transparent;
    transition: ease .3s;
}

.auth-back i {
    font-size: 14px;
    transition: transform .3s ease;
}


}



/* =========================================
   LOGIN PAGE TITLE
   对应 PORTFOLIO 独立大标题
   ========================================= */

.auth-page-title-area {
    width: 100%;
}

.auth-page-title-container {
    width: calc(100% - 80px);
    max-width: 1550px;
    margin: 0 auto;
}

.auth-page-title-inner {
    padding-top: 0;
}

.auth-page-title-wrapper {
    margin-top: 80px;
    margin-bottom: 0;
}

.auth-page-title {
    margin: 0;
    padding: 0;
    font-family: var(--font_thunder);
    font-size: 495px;
    font-weight: 600;
    line-height: 0.8;
    letter-spacing: -0.02em;

    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;

    color: var(--auth-ink);
}

/* 与原 PORTFOLIO 标题相同的响应式字号 */

@media only screen and (max-width: 1919px) {
    .auth-page-title {
        font-size: 385px;
    }

    .auth-page-title-inner {
        padding-top: 90px;
    }
}

@media only screen and (max-width: 1399px) {
    .auth-page-title {
        font-size: 325px;
    }

    .auth-page-title-inner {
        padding-top: 80px;
    }
}

@media only screen and (max-width: 1199px) {
    .auth-page-title {
        font-size: 265px;
    }

    .auth-page-title-inner {
        padding-top: 60px;
    }
}

@media only screen and (max-width: 991px) {
    .auth-page-title-wrapper {
        margin-top: 28px;
        margin-bottom: 10px;
    }

    .auth-page-title {
        font-size: 185px;
    }
}

@media only screen and (max-width: 767px) {
    .auth-page-title {
        font-size: 145px;
    }
}

@media (max-width: 575px) {
    .auth-page-title-container {
        width: calc(100% - 36px);
    }

    .auth-page-title {
        font-size: 220px;
    }

    .auth-page-title-wrapper {
    margin-top: 20px;
    margin-bottom: -20px;
}

}


.auth-main {
    max-width: 1280px;
    width: calc(100% - 80px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(350px, .8fr);
    align-items: center;
    gap: clamp(35px, 7vw, 130px);
    padding: 80px 0
}

.auth-intro {
    align-self: center
}

.auth-kicker {
    font-size: 13px;
    color: #aaa;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 13px
}



/* 左侧视频容器的位置 */
.auth-title {
    width: 100%;
    margin: 32px 0;
    padding: 0;

    font-size: inherit;
    font-weight: normal;
    line-height: normal;
    letter-spacing: normal;
    text-transform: none;
}


/* CG 视频外层 */
.auth-showreel {
    width: 100%;
    aspect-ratio: 21 / 9;

    overflow: hidden;
    border-radius: 20px;

    background: #111111;
}

/* 视频本体 */
.auth-showreel-video {
    display: block;
    width: 100%;
    height: 100%;

}


.auth-title span {
    display: block
}

.auth-title .outlined {
    -webkit-text-stroke: 1px #eeeeee;
    color: transparent
}

.auth-description {
    max-width: 460px;
    color: #999;
    font-size: 15px;
    line-height: 1.85;
    font-family: var(--font_opposans);
}

.auth-line {
    margin-top: 40px;
    width: 90px;
    height: 2px;
    background: #c62e2e
}

.auth-card {
    width: 100%;
    padding: clamp(26px, 4vw, 52px);
    background: rgba(36, 36, 36, .63);
    border: 1px solid rgba(238, 238, 238, .12);
    border-radius: 24px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .18);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px)
}

.auth-card-tag {
    font-size: 12px;
    color: #c62e2e;
    letter-spacing: .12em;
    text-transform: uppercase
}

.auth-card h1 {
    font-family: "OPPOSans", "Noto Sans SC", sans-serif;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 500;
    margin: 12px 0 6px;
    color: #eee;
    line-height: 1.35
}

.auth-card-sub {
    color: #9e9e9e;
    font-size: 13px;
    margin: 0 0 32px;
    line-height: 1.8
}

.auth-form {
    display: grid;
    gap: 19px
}

.auth-field {
    display: grid;
    gap: 9px
}

.auth-field label {
    color: #d6d6d6;
    font-size: 13px
}

.auth-input-wrap {
    position: relative
}

.auth-field input {
    width: 100%;
    height: 54px;
    border-radius: 11px;
    padding: 0 16px;
    background: rgba(15, 15, 15, .7);
    border: 1px solid rgba(238, 238, 238, .15);
    color: white;
    outline: none;
    transition: border-color .2s, box-shadow .2s
}

.auth-field input::placeholder {
    color: #656565
}

.auth-field input:focus {
    border-color: rgba(238, 238, 238, .5);
    box-shadow: 0 0 0 3px rgba(238, 238, 238, .05)
}

.auth-field input[type=password],
.auth-field input.password-input {
    padding-right: 74px
}

.auth-show {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 8px;
    font-size: 12px
}

.auth-hint {
    font-size: 11px;
    color: #888;
    line-height: 1.6
}

.auth-status {
    display: none;
    font-size: 12px;
    line-height: 1.65;
    border-radius: 10px;
    padding: 12px 14px
}

.auth-status.show {
    display: block
}

.auth-status.error {
    background: rgba(198, 46, 46, .12);
    color: #ffabab;
    border: 1px solid rgba(198, 46, 46, .35)
}

.auth-status.success {
    background: rgba(69, 160, 118, .12);
    color: #9ce8bc;
    border: 1px solid rgba(69, 160, 118, .35)
}

.auth-submit {
    margin-top: 6px;
    border: 1px solid #eee;
    border-radius: 100px;
    height: 54px;
    background: #eee;
    color: #111111;
    cursor: pointer;
    font-weight: 650;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 23px;
    transition: background .25s, transform .25s
}

.auth-submit:not(:disabled):hover {
    background: #111111;
    color: #EEEEEE;
    border-color: #111111;
   transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.auth-submit:disabled {
    opacity: .6;
    cursor: wait
}

.auth-switch {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--auth-line);
    font-size: 13px;
    color: #999;
    text-align: center
}

.auth-switch a {
    color: #eee;
    border-bottom: 1px solid #888;
    padding-bottom: 2px
}

.auth-switch a:hover {
    color: #ff7070;
    border-color: #ff7070
}


.auth-footer {
    width: calc(100% - 80px);
    max-width: 1440px;

    margin: auto auto 0;
    padding:32px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    border-top: 1px solid var(--auth-line);

    font-size: 11px;
    line-height: 1.2;
    font-family: var(--font_opposans);
    font-weight: 500;
    color: #777;
}

@media (max-width: 575px) {

    .auth-footer {
    width: calc(100% - 80px);
    max-width: 1440px;

    margin: auto auto 0;
    padding: 16px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    border-top: 1px solid var(--auth-line);

    font-size: 10px;

    font-family: var(--font_opposans);
    font-weight: 500;
    color: #777;
}

    .auth-header {
    margin-top: 10px;
    padding: 10px;
    min-height: 0;
}

.auth-logo {
    height: 40px;
    padding: 0 6px;
}

.auth-logo img {
    height: 30px;
    max-width: 80px;
}

.auth-back {
    height: 40px;
    padding: 0 12px;
    gap: 6px;
    font-size: 10px;
}
}


.auth-footer a:hover {
    color: #eee
}

.auth-home-user {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: "OPPOSans", sans-serif;
    font-size: 13px;
    color: var(--primary)
}

.auth-home-logout {
    cursor: pointer;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 50px;
    color: inherit;
    background: transparent
}

.auth-home-logout:hover {
    color: #c62e2e
}

@media(max-width:900px) {
    .auth-main {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 70px 0
    }

    .auth-title {
        font-size: clamp(90px, 23vw, 175px);
        margin: 24px 0
    }

    .auth-intro {
        display: none
    }

    .auth-card {
        max-width: 560px;
        margin: auto
    }

    .auth-header,
    .auth-main,
    .auth-footer {
        width: calc(100% - 36px)
    }
}

@media(max-width:480px) {
    .auth-header {
        margin-top: 16px;
        padding: 14px 18px;
        min-height: 64px
    }

    .auth-logo img {
        width: 96px
    }

    .auth-main {
        padding: 45px 0
    }

    .auth-card {
        padding: 27px 21px;
        border-radius: 18px
    }

    .auth-card h1 {
        font-size: 26px
    }

    .auth-footer {
        flex-direction: column;
        align-items: center;
        text-align: center
    }

    .auth-home-user {
        font-size: 11px;
        gap: 5px
    }
}

@media(prefers-reduced-motion:reduce) {

    .auth-submit,
    .auth-back,
    .auth-field input {
        transition: none
    }
}

/* =========================================
   CYOUNG 登录注册页 - 首页同款自定义鼠标
   ========================================= */

/* 仅桌面端隐藏系统鼠标 */
@media (hover: hover) and (pointer: fine) {

    body.auth-page,
    body.auth-page *,
    body.auth-page a,
    body.auth-page button,
    body.auth-page input {
        cursor: none !important;
    }

    /* 跟手鼠标 */
    body.auth-page .fa-cursor {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 999999;
        pointer-events: none;
    }

    /* 鼠标箭头颜色 */
    body.auth-page .fa-cursor i {
        color: #C62E2E;
        pointer-events: none;
    }
}

/* 手机和平板触摸操作 */
@media (hover: none), (pointer: coarse) {

    body.auth-page,
    body.auth-page * {
        cursor: auto !important;
    }

    body.auth-page .fa-cursor {
        display: none !important;
    }
}
