@charset "utf-8";

/*
 * 인트로 페이지 스타일
 * ---------------------------------------------------------
 * 적용 페이지: intro.html
 *
 * 담당 영역:
 * 1. 인트로 전체 화면 배경, 격자, 스캔 라인
 * 2. 상단 MPH 브랜드와 SYSTEM ONLINE 상태 표시
 * 3. 중앙 비디오 코어, 원형 링, MPH DATABASE 타이틀
 * 4. 진행률 바와 ENTER DATABASE 버튼
 * 5. 로그인 모달, 입력창, 성공 이펙트
 * 6. 하단 채널 라벨과 모바일 반응형
 *
 * 애니메이션 키프레임은 css/animations.css에 따로 있습니다.
 * 색상 기준은 --point 변수이며 기본값은 오버워치 주황색 #f47721입니다.
 */

/*
 * MPH 인트로 전용 스타일
 * 1. 배경 그리드와 스캔라인
 * 2. 회전 비디오 코어와 데이터 진행률
 * 3. ENTER DATABASE 버튼과 로그인 모달
 * 4. 인증 성공 스캔/펄스 효과
 * 5. 700px 이하 모바일 반응형
 */

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

:root {
    --point: #f47721;
}

html,
body {
    width: 100%;
    min-height: 100%;
    overflow: hidden;
}

body {
    background: #03060b;
    color: #fff;
    font-family: "Zen Dots", sans-serif;
}

button,
a {
    color: inherit;
    font: inherit;
}

a {
    text-decoration: none;
}

button {
    border: 0;
    background: none;
    cursor: pointer;
}

.intro_shell {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    place-items: center;
    background:
        radial-gradient(circle at 50% 44%, rgba(244, 119, 33, .14), transparent 27%),
        linear-gradient(90deg, rgba(3, 6, 11, .98), rgba(3, 6, 11, .84)),
        url("../images/main/home_bg.png") center top / var(--intro-bg-size, cover) no-repeat;
    isolation: isolate;
    transition: opacity .55s ease, transform .8s cubic-bezier(.2, .8, .2, 1), filter .55s ease;
}

.intro_shell.is_leaving {
    opacity: 0;
    filter: brightness(1.8) blur(9px);
    transform: scale(1.16);
}

.intro_grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle, #000 22%, transparent 75%);
}

.intro_scan {
    position: absolute;
    top: -15%;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--point), transparent);
    box-shadow: 0 0 18px var(--point);
    opacity: .55;
    animation: intro_scan 5s linear infinite;
}

.intro_header,
.intro_footer {
    position: absolute;
    right: 4vw;
    left: 4vw;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.intro_header {
    top: 34px;
}

.intro_brand {
    font-size: 22px;
    letter-spacing: 3px;
}

.intro_header p,
.intro_footer {
    color: rgba(255, 255, 255, .4);
    font-size: 8px;
    letter-spacing: 2px;
}

.intro_header p span {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 50%;
    background: #56b65b;
    box-shadow: 0 0 12px #56b65b;
}

.intro_footer {
    bottom: 28px;
}

.intro_content {
    position: relative;
    z-index: 2;
    width: min(780px, calc(100% - 48px));
    text-align: center;
}

.intro_core {
    position: relative;
    width: 126px;
    height: 126px;
    margin: 0 auto 22px;
}

.intro_core video {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    mix-blend-mode: screen;
    filter: brightness(1.45) contrast(1.1);
}

.core_ring {
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(244, 119, 33, .45);
    border-radius: 50%;
    animation: core_spin 8s linear infinite;
}

.core_ring::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--point);
    box-shadow: 0 0 13px var(--point);
}

.ring_two {
    inset: -22px;
    border-style: dashed;
    opacity: .35;
    animation-direction: reverse;
    animation-duration: 13s;
}

.intro_eyebrow {
    color: var(--point);
    font-size: 10px;
    letter-spacing: 5px;
}

.intro_content h1 {
    margin-top: 16px;
    font-size: clamp(54px, 9vw, 116px);
    line-height: .84;
    letter-spacing: -3px;
    text-shadow: 0 10px 35px rgba(0, 0, 0, .45);
}

.intro_content h1 span {
    color: var(--point);
    font-size: .62em;
    letter-spacing: 5px;
}

.intro_description {
    max-width: 620px;
    margin: 25px auto 0;
    color: rgba(255, 255, 255, .56);
    font-size: 11px;
    line-height: 1.9;
}

.intro_status {
    width: min(500px, 100%);
    margin: 34px auto 0;
}

.status_heading {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, .42);
    font-size: 8px;
    letter-spacing: 2px;
}

.status_heading b {
    color: var(--point);
    font-weight: 400;
}

.progress_track {
    height: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, .1);
}

.progress_track span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #ff006e, #9452ff, var(--point));
    box-shadow: 0 0 15px var(--point);
    transition: width .16s linear;
}

.intro_enter {
    display: inline-flex;
    min-width: 250px;
    height: 54px;
    margin-top: 26px;
    padding: 0 22px;
    border: 1px solid var(--point);
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, .35);
    font-size: 9px;
    letter-spacing: 2px;
    opacity: .5;
    cursor: wait;
    transition: color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease, opacity .25s ease;
}

.intro_enter.ready {
    color: #fff;
    opacity: 1;
    cursor: pointer;
}

.intro_enter.ready:hover {
    background: rgba(244, 119, 33, .18);
    box-shadow: 0 0 30px rgba(244, 119, 33, .28);
    transform: translateY(-3px);
}

.intro_enter b {
    color: var(--point);
    font-size: 18px;
    font-weight: 400;
}

.login_modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    visibility: hidden;
    place-items: center;
    opacity: 0;
    transition: visibility .3s ease, opacity .3s ease;
}

.login_modal.active {
    visibility: visible;
    opacity: 1;
}

.login_modal_backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 3, 8, .8);
    backdrop-filter: blur(14px);
}

.login_dialog {
    position: relative;
    z-index: 1;
    width: min(440px, calc(100% - 32px));
    padding: 38px;
    overflow: hidden;
    border: 1px solid var(--point);
    border-radius: 12px;
    background:
        radial-gradient(circle at 90% 0, rgba(244, 119, 33, .2), transparent 38%),
        rgba(5, 8, 15, .97);
    box-shadow: 0 0 42px rgba(244, 119, 33, .2), 0 30px 80px rgba(0, 0, 0, .6);
    opacity: 0;
    transform: translateY(24px) scale(.94);
    transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}

.login_modal.active .login_dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.login_modal.login_success .login_dialog {
    box-shadow: 0 0 25px var(--point), 0 0 90px rgba(244, 119, 33, .5);
    animation: login_dialog_success .8s ease both;
}

.login_dialog::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 38%;
    height: 3px;
    background: var(--point);
    box-shadow: 0 0 16px var(--point);
    transition: width .55s ease;
}

.login_modal.login_success .login_dialog::before {
    width: 100%;
}

.login_close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    color: rgba(255, 255, 255, .5);
    transition: color .2s ease, transform .2s ease;
}

.login_close:hover {
    color: var(--point);
    transform: rotate(90deg);
}

.login_heading > span {
    color: var(--point);
    font-size: 8px;
    letter-spacing: 2px;
}

.login_heading h2 {
    margin-top: 10px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1;
}

.login_heading p {
    margin-top: 10px;
    color: rgba(255, 255, 255, .34);
    font-size: 8px;
    letter-spacing: 1px;
}

.login_form {
    display: grid;
    gap: 10px;
    margin-top: 30px;
}

.login_form label {
    margin-top: 5px;
    color: var(--point);
    font-size: 8px;
    letter-spacing: 2px;
}

.login_input {
    display: flex;
    height: 50px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 7px;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .055);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.login_input:focus-within {
    border-color: var(--point);
    box-shadow: 0 0 0 3px rgba(244, 119, 33, .1);
}

.login_input i {
    width: 16px;
    color: var(--point);
    text-align: center;
}

.login_input input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-family: "Zen Dots", sans-serif;
    font-size: 11px;
}

.login_input input::placeholder {
    color: rgba(255, 255, 255, .28);
}

.login_form > button {
    height: 52px;
    margin-top: 12px;
    border-radius: 7px;
    background: var(--point);
    color: #fff;
    font-size: 9px;
    letter-spacing: 1px;
    transition: filter .25s ease, box-shadow .25s ease, transform .25s ease;
}

.login_form > button:hover {
    filter: brightness(1.12);
    box-shadow: 0 0 22px rgba(244, 119, 33, .4);
    transform: translateY(-2px);
}

.login_form > button i {
    margin-left: 8px;
}

.login_message {
    min-height: 18px;
    color: var(--point);
    font-size: 10px;
    text-align: center;
}

.login_success_fx {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    visibility: hidden;
    place-items: center;
    overflow: hidden;
    pointer-events: none;
}

.login_success_fx::before {
    content: "";
    position: absolute;
    top: -20%;
    width: 100%;
    height: 4px;
    background: var(--point);
    box-shadow: 0 0 16px var(--point), 0 0 55px rgba(244, 119, 33, .65);
}

.login_success_fx span {
    width: 110px;
    height: 110px;
    border: 2px solid var(--point);
    border-radius: 50%;
    box-shadow: inset 0 0 24px rgba(244, 119, 33, .45), 0 0 32px rgba(244, 119, 33, .55);
    opacity: 0;
}

.login_modal.login_success .login_success_fx {
    visibility: visible;
}

.login_modal.login_success .login_success_fx::before {
    animation: login_scan .85s ease-in-out both;
}

.login_modal.login_success .login_success_fx span {
    animation: login_pulse .85s ease-out both;
}

.login_modal.login_success .login_heading h2 {
    color: var(--point);
    text-shadow: 0 0 22px rgba(244, 119, 33, .65);
}

.intro_channels {
    position: absolute;
    top: 50%;
    right: 3.5vw;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transform: translateY(-50%);
}

.intro_channels span {
    position: relative;
    padding-right: 22px;
    color: rgba(255, 255, 255, .28);
    font-size: 7px;
    letter-spacing: 1px;
    text-align: right;
}

.intro_channels span::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--channel);
    box-shadow: 0 0 10px var(--channel);
    transform: translateY(-50%);
    animation: channel_pulse 1.8s ease-in-out infinite alternate;
}

@media (max-width: 700px) {
    .intro_header,
    .intro_footer {
        right: 20px;
        left: 20px;
    }

    .intro_channels {
        display: none;
    }

    .intro_core {
        width: 96px;
        height: 96px;
    }

    .intro_content h1 {
        letter-spacing: -1px;
    }

    .intro_content h1 span {
        letter-spacing: 2px;
    }

    .intro_description {
        font-size: 9px;
    }
}

@media (max-width: 900px) {
    .intro_shell {
        --intro-bg-size: auto 506px;
    }
}

@media (max-width: 720px) {
    .intro_shell {
        --intro-bg-size: auto 405px;
    }
}

@media (max-width: 640px) {
    .intro_shell {
        --intro-bg-size: auto 360px;
    }
}

@media (max-width: 480px) {
    .intro_shell {
        --intro-bg-size: auto 270px;
    }
}

@media (max-width: 390px) {
    .intro_shell {
        --intro-bg-size: auto 219px;
    }
}

@media (max-width: 320px) {
    .intro_shell {
        --intro-bg-size: auto 180px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms;
        animation-iteration-count: 1;
    }
}

/* Prevent mobile and in-app browsers from zooming the login fields. */
@media (max-width: 820px) {
    .login_input input {
        font-size: 16px;
        touch-action: manipulation;
    }
}
