﻿/* ============================================================
   DevIntra · 사내 개발 인트라넷 로그인 화면 스타일시트
   - 다크 글래스모피즘 + 그라데이션 오브 + 그리드 배경
   - 테마는 :root 변수만 바꾸면 전체에 반영됩니다.
   ============================================================ */

:root {
    --bg: #0b0f17;
    --panel: rgba(255, 255, 255, 0.04);
    --panel-border: rgba(255, 255, 255, 0.08);
    --text: #e7ecf3;
    --text-dim: #8b95a7;
    --brand: #6366f1;
    --brand-2: #22d3ee;
    --danger: #f87171;
    --radius: 16px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
}

/* 배경 그라데이션 오브 */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    z-index: 0;
    animation: float 14s ease-in-out infinite;
}

    .orb.a {
        width: 460px;
        height: 460px;
        background: #6366f1;
        top: -120px;
        left: -100px;
    }

    .orb.b {
        width: 380px;
        height: 380px;
        background: #22d3ee;
        bottom: -140px;
        right: -80px;
        animation-delay: -5s;
    }

    .orb.c {
        width: 300px;
        height: 300px;
        background: #a855f7;
        top: 40%;
        right: 20%;
        animation-delay: -9s;
        opacity: 0.3;
    }

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.08);
    }
}

/* 그리드 오버레이 (개발자 느낌) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
    z-index: 0;
}

.card {
    position: relative;
    z-index: 1;
    width: 400px;
    max-width: calc(100vw - 32px);
    padding: 40px 36px 32px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
    animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

    .brand .logo {
        width: 100px;
        height: 38px;
        border-radius: 10px;
        background: linear-gradient(135deg, var(--brand), var(--brand-2));
        display: grid;
        place-items: center;
        font-weight: 800;
        color: #0b0f17;
        font-size: 18px;
        box-shadow: 0 6px 20px rgba(99,102,241,0.5);
    }

    .brand .name {
        font-size: 17px;
        font-weight: 700;
        letter-spacing: -0.2px;
    }

        .brand .name span {
            color: var(--text-dim);
            font-weight: 500;
        }

h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-bottom: 6px;
}

.sub {
    font-size: 13.5px;
    color: var(--text-dim);
    margin-bottom: 26px;
}

.field {
    margin-bottom: 16px;
}

    .field label {
        display: block;
        font-size: 12.5px;
        color: var(--text-dim);
        margin-bottom: 7px;
        font-weight: 500;
    }

.input-wrap {
    position: relative;
}

    .input-wrap svg {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        width: 17px;
        height: 17px;
        stroke: var(--text-dim);
        pointer-events: none;
    }

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 14px 12px 40px;
    font-size: 14px;
    font-family: var(--font);
    color: var(--text);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

input::placeholder {
    color: #57617a;
}

input:focus {
    border-color: var(--brand);
    background: rgba(99,102,241,0.06);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
}

.toggle-pw {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 6px;
    font-size: 12px;
    border-radius: 6px;
}

    .toggle-pw:hover {
        color: var(--text);
    }

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 22px;
    font-size: 13px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-dim);
    cursor: pointer;
    user-select: none;
}

    .remember input {
        accent-color: var(--brand);
        width: 15px;
        height: 15px;
    }

.link {
    color: var(--brand-2);
    text-decoration: none;
}

    .link:hover {
        text-decoration: underline;
    }

button.submit {
    width: 100%;
    padding: 13px;
    font-size: 14.5px;
    font-weight: 600;
    font-family: var(--font);
    color: #fff;
    background: linear-gradient(135deg, var(--brand), #4f46e5);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 8px 24px rgba(99,102,241,0.35);
}

    button.submit:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 30px rgba(99,102,241,0.45);
    }

    button.submit:active {
        transform: translateY(0);
    }

    button.submit:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--text-dim);
    font-size: 12px;
}

    .divider::before,
    .divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--panel-border);
    }

button.sso {
    width: 100%;
    padding: 12px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: var(--font);
    color: var(--text);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: background 0.2s, border-color 0.2s;
}

    button.sso:hover {
        background: rgba(255,255,255,0.08);
        border-color: rgba(255,255,255,0.2);
    }

    button.sso svg {
        width: 17px;
        height: 17px;
    }

.foot {
    margin-top: 26px;
    text-align: center;
    font-size: 12px;
    color: #57617a;
}

    .foot code {
        font-family: "SF Mono", ui-monospace, Menlo, monospace;
        color: var(--text-dim);
        font-size: 11.5px;
    }

.error {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--danger);
    background: rgba(248,113,113,0.1);
    border: 1px solid rgba(248,113,113,0.25);
    padding: 9px 12px;
    border-radius: 9px;
    margin-bottom: 16px;
}

    .error.show {
        display: flex;
        animation: shake 0.35s;
    }

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}


.submit {
    width: 100%;
    padding: 13px;
    font-size: 14.5px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), #4f46e5);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s;
    box-shadow: 0 8px 24px rgba(99,102,241,.35);
}

    .submit:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 30px rgba(99,102,241,.45);
    }

    .submit:focus,
    .submit:focus-visible,
    .submit:active {
        background: linear-gradient(135deg, var(--brand), #4f46e5);
        color: #fff;
        outline: none;
    }
