﻿/* pswms - minimal, clean UI */

:root {
    --bg: #f6f8fb;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #d7dde6;
    --brand: #2563eb; /* blue */
    --accent: #10b981; /* green */
    --warn: #f59e0b; /* amber */
    --danger: #ef4444; /* red */

    --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    --radius: 10px;
}

html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: radial-gradient(1200px 600px at 50% -200px, rgba(37,99,235,0.18), transparent 60%), radial-gradient(900px 500px at 90% 0px, rgba(16,185,129,0.12), transparent 55%), var(--bg);
    color: var(--text);
}

.ps-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 16px;
}

.ps-center {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 16px 0;
    box-sizing: border-box;
}

.ps-card {
    background: var(--card);
    border: 1px solid rgba(215,221,230,0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.ps-card-header {
    padding: 18px 20px 12px;
    border-bottom: 1px solid rgba(215,221,230,0.7);
    background: linear-gradient(90deg, rgba(37,99,235,0.12), rgba(16,185,129,0.10));
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.ps-title {
    margin: 0;
    font-size: 22px;
    letter-spacing: 0.02em;
}

.ps-sub {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.ps-login-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    min-height: 54px;
}

.ps-login-brand-logo {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.10);
}

.ps-login-brand-jp {
    text-align: left;
    line-height: 1.2;
}

.ps-login-brand-jp-line1 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #334155;
}

.ps-login-brand-jp-line2 {
    margin-top: 4px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #0f172a;
}

.ps-card-body {
    padding: 18px 20px 20px;
}

.ps-form-grid {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 10px 14px;
    align-items: center;
}

.ps-label {
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
}

.ps-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(215,221,230,0.95);
    border-radius: 8px;
    background: #fff;
    outline: none;
}

    .ps-input:focus {
        border-color: rgba(37,99,235,0.75);
        box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
    }

.ps-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.ps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 9px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    font-weight: 700;
    font-size: 14px;
}

.ps-btn-primary {
    background: var(--brand);
    color: #fff;
}

    .ps-btn-primary:hover {
        filter: brightness(0.95);
    }

.ps-btn-ghost {
    background: #fff;
    border-color: rgba(215,221,230,0.95);
    color: var(--text);
}

    .ps-btn-ghost:hover {
        background: rgba(246,248,251,0.8);
    }

.ps-hint {
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.ps-divider {
    height: 1px;
    background: rgba(215,221,230,0.7);
    margin: 14px 0;
}

.ps-smallcard {
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 1px solid rgba(215,221,230,0.9);
    background: rgba(255,255,255,0.85);
}

.ps-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.ps-link {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

    .ps-link:hover {
        text-decoration: underline;
    }

/* Menu */
.ps-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

    .ps-topbar h1 {
        margin: 0;
        font-size: 22px;
    }

.ps-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--muted);
    border: 1px solid rgba(215,221,230,0.95);
    background: rgba(255,255,255,0.75);
}

.ps-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 860px) {
    .ps-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .ps-menu-grid {
        grid-template-columns: 1fr;
    }

    .ps-login-brand-logo {
        width: 160px;
    }

    .ps-login-brand-jp-line1 {
        font-size: 13px;
    }

    .ps-login-brand-jp-line2 {
        font-size: 21px;
    }
}

.ps-tile {
    display: block;
    padding: 14px 14px;
    border-radius: 12px;
    border: 1px solid rgba(215,221,230,0.95);
    background: rgba(255,255,255,0.90);
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.04s ease, filter 0.12s ease, background 0.12s ease;
}

    .ps-tile:hover {
        filter: brightness(0.98);
        background: #fff;
    }

    .ps-tile:active {
        transform: translateY(1px);
    }

.ps-tile-title {
    font-weight: 800;
    margin: 0;
    font-size: 15px;
}

.ps-tile-sub {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--muted);
}

/* Accent border by category */
.ps-tile-report {
    border-left: 5px solid rgba(37,99,235,0.75);
}

.ps-tile-request {
    border-left: 5px solid rgba(16,185,129,0.75);
}

.ps-tile-master {
    border-left: 5px solid rgba(245,158,11,0.75);
}

.ps-login-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

    .ps-login-page .ps-container {
        position: relative;
        z-index: 1;
    }

    .ps-login-page::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url('/images/login-bg-warehouse.jpg');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        filter: blur(3px) brightness(0.82) saturate(0.95);
        z-index: 0;
    }

    .ps-login-page::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.18));
        z-index: 0;
    }

    .ps-login-page .ps-card {
        background: rgba(255, 255, 255, 0.18);
        border: 1px solid rgba(255, 255, 255, 0.34);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .ps-login-page .ps-card-header {
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.10));
        border-bottom: 1px solid rgba(255, 255, 255, 0.24);
    }

    .ps-login-page .ps-input {
        background: rgba(255, 255, 255, 0.88);
        border: 1px solid rgba(255, 255, 255, 0.70);
    }

        .ps-login-page .ps-input:focus {
            border-color: rgba(37, 99, 235, 0.78);
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
        }

    .ps-login-page .ps-hint {
        color: rgba(15, 23, 42, 0.78);
    }
