/* ABTECH Copyparty Login Theme
   Applies only to the logged-out Copyparty splash/login screen.
*/

html#ht_spl,
html#ht_spl body {
    min-height: 100%;
}

html#ht_spl body:has(#b) {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, "Noto Sans KR", sans-serif;
    color: #eaf2ff;
    background:
        radial-gradient(circle at 50% 20%, #102a50 0%, #07182d 38%, #030b16 75%) !important;
}

/* centered login card */
html#ht_spl body:has(#b) #wrap {
    position: relative;
    width: min(460px, calc(100% - 36px));
    margin: 0 auto;
    padding: 235px 42px 42px;
    min-height: 100vh;
    box-sizing: border-box;
}

/* ABTECH logo */
html#ht_spl body:has(#b) #wrap::before {
    content: "";
    position: absolute;
    top: 58px;
    left: 50%;
    transform: translateX(-50%);
    width: 230px;
    height: 145px;
    background: url("/images/abtech-logo.png") center / contain no-repeat;
    filter: drop-shadow(0 8px 20px rgba(0, 89, 190, .18));
}

/* hide the stock developer-ish elements */
html#ht_spl body:has(#b) #a,
html#ht_spl body:has(#b) #v,
html#ht_spl body:has(#b) #b,
html#ht_spl body:has(#b) #cc,
html#ht_spl body:has(#b) .agr,
html#ht_spl body:has(#b) #repl,
html#ht_spl body:has(#b) #pb {
    display: none !important;
}

/* login title */
html#ht_spl body:has(#b) #l {
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    text-align: center;
    font-size: 0;
    font-weight: 700;
    color: #fff;
}

html#ht_spl body:has(#b) #l::before {
    content: "ABTECH File Server";
    display: block;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: .2px;
}

html#ht_spl body:has(#b) #l::after {
    content: "파일 서버에 로그인하세요";
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .4px;
    color: #87a4c7;
}

/* card */
html#ht_spl body:has(#b) #l + div {
    padding: 30px;
    background:
        linear-gradient(135deg, rgba(20,49,84,.78), rgba(7,25,48,.9));
    border: 1px solid #285c92;
    border-radius: 18px;
    box-shadow:
        0 18px 40px rgba(0,0,0,.38),
        inset 0 0 25px rgba(35,120,220,.05);
}

/* login form */
html#ht_spl body:has(#b) #lf {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

html#ht_spl body:has(#b) #lp,
html#ht_spl body:has(#b) #lu {
    width: 100%;
    height: 50px;
    box-sizing: border-box;
    padding: 0 16px;
    margin: 0;
    border: 1px solid #2a5c8d;
    border-radius: 10px;
    outline: none;
    background: rgba(2, 13, 27, .78);
    color: #fff;
    font-size: 16px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,.25);
}

html#ht_spl body:has(#b) #lp::placeholder,
html#ht_spl body:has(#b) #lu::placeholder {
    color: #718ba8;
    font-style: normal;
}

html#ht_spl body:has(#b) #lp:focus,
html#ht_spl body:has(#b) #lu:focus {
    border-color: #168cff;
    box-shadow:
        0 0 0 3px rgba(22,140,255,.14),
        inset 0 2px 8px rgba(0,0,0,.25);
}

/* login button */
html#ht_spl body:has(#b) #ls {
    width: 100%;
    height: 48px;
    margin: 2px 0 0;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #168cff, #0769d5);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.2px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,105,220,.25);
    transition: .2s ease;
}

html#ht_spl body:has(#b) #ls:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #279aff, #0878ed);
    box-shadow: 0 10px 24px rgba(0,105,220,.34);
}

/* messages / change-password / https helper */
html#ht_spl body:has(#b) #lm {
    color: #ffb4b4;
    font-size: 13px;
    text-align: center;
}

html#ht_spl body:has(#b) #x,
html#ht_spl body:has(#b) #w {
    color: #67adff;
    text-align: center;
    text-decoration: none;
}

/* footer branding */
html#ht_spl body:has(#b) #wrap::after {
    content: "ABTECH NAS SERVER  ·  © 2026 ABTECH";
    display: block;
    margin-top: 25px;
    text-align: center;
    color: #526d8d;
    font-size: 11px;
    letter-spacing: 1.5px;
}

/* mobile */
@media (max-width: 560px) {
    html#ht_spl body:has(#b) #wrap {
        width: min(410px, calc(100% - 24px));
        padding: 190px 12px 30px;
    }

    html#ht_spl body:has(#b) #wrap::before {
        top: 38px;
        width: 190px;
        height: 120px;
    }

    html#ht_spl body:has(#b) #l + div {
        padding: 24px 20px;
    }

    html#ht_spl body:has(#b) #l::before {
        font-size: 26px;
    }
}
