* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #02091a;
    color: #eef3ff;
}

a { text-decoration: none; }

.grid-bg {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(0, 189, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 189, 255, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 20% 30%, rgba(0, 128, 255, 0.18), transparent 28%),
        radial-gradient(circle at 85% 45%, rgba(0, 195, 255, 0.18), transparent 24%),
        linear-gradient(180deg, #020817 0%, #030b1e 100%);
    background-size: 36px 36px, 36px 36px, auto, auto, auto;
    z-index: 0;
}

.page-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 24px;
}

.center-wrap {
    min-height: calc(100vh - 48px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card,
.explorer-page {
    width: 100%;
    max-width: 920px;
    background: rgba(10, 18, 46, 0.92);
    border: 1px solid rgba(82, 122, 255, 0.22);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), 0 0 30px rgba(50, 110, 255, 0.15);
    overflow: hidden;
}

.small-card {
    max-width: 520px;
    padding: 40px;
}

.hero-area {
    text-align: center;
    padding: 46px 24px 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.robot-icon, .lock-icon {
    font-size: 54px;
    margin-bottom: 12px;
}

.hero-area h1 {
    margin: 0;
    font-size: 52px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #f7fbff;
    text-shadow: 0 0 12px rgba(116, 164, 255, 0.8);
}

.subtitle {
    margin-top: 8px;
    font-size: 28px;
    color: #cfd8f7;
    font-weight: 700;
}

.authority {
    margin-top: 10px;
    color: #8ea3d8;
    font-size: 18px;
}

.panel-box {
    margin: 34px auto;
    width: min(640px, calc(100% - 36px));
    background: rgba(44, 27, 14, 0.45);
    border: 1px solid rgba(247, 181, 51, 0.45);
    border-radius: 18px;
    text-align: center;
    padding: 34px 24px;
}

.panel-box h2 {
    margin: 6px 0 8px;
    font-size: 34px;
    color: #ffd24c;
}

.panel-box p {
    margin: 0 auto 18px;
    max-width: 520px;
    color: #ffebae;
    font-size: 18px;
    line-height: 1.5;
}

.login-form {
    max-width: 430px;
    margin: 18px auto 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-form label {
    text-align: left;
    font-size: 15px;
    color: #dce5ff;
}

.login-form input {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: rgba(255,255,255,0.07);
    color: #fff;
    padding: 14px 16px;
    font-size: 16px;
}

.login-form input:focus {
    outline: none;
    border-color: #6ca3ff;
    box-shadow: 0 0 0 3px rgba(108, 163, 255, 0.18);
}

.login-form button,
.logout-btn,
.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    color: #081122;
    background: linear-gradient(180deg, #ffd44d 0%, #f6b11a 100%);
}

.logout-btn,
.back-btn {
    color: #081122;
}

.field-error,
.error-box {
    color: #ffd2d2;
    font-size: 14px;
}

.error-box {
    background: rgba(167, 30, 30, 0.22);
    border: 1px solid rgba(255, 115, 115, 0.3);
    border-radius: 12px;
    padding: 10px 12px;
}

.event-area {
    padding: 20px 32px 34px;
    color: #8fa2cf;
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
}

.explorer-page {
    padding: 26px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.topbar h1 {
    margin: 0 0 6px;
    font-size: 36px;
}

.pathline {
    color: #9eb1de;
    font-size: 15px;
}

.toolbar {
    margin-bottom: 18px;
}

.empty-box {
    background: rgba(255,255,255,0.04);
    border: 1px dashed rgba(255,255,255,0.16);
    border-radius: 18px;
    padding: 40px 18px;
    text-align: center;
    color: #d7e0f9;
}

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
}

.tile-card {
    display: block;
    min-height: 210px;
    padding: 20px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(255,255,255,0.04);
    color: #eef3ff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.28);
    border-color: rgba(120, 166, 255, 0.4);
}

.tile-card.folder {
    background: linear-gradient(180deg, rgba(255, 205, 94, 0.12), rgba(255,255,255,0.03));
}

.tile-card.file {
    background: linear-gradient(180deg, rgba(96, 152, 255, 0.10), rgba(255,255,255,0.03));
}

.tile-icon {
    font-size: 52px;
    margin-bottom: 16px;
}

.tile-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.tile-meta,
.tile-date {
    color: #9fb2de;
    font-size: 14px;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .page-shell { padding: 14px; }
    .hero-area h1 { font-size: 36px; }
    .subtitle { font-size: 20px; }
    .authority, .event-area { font-size: 15px; }
    .panel-box h2 { font-size: 28px; }
    .topbar { flex-direction: column; align-items: stretch; }
    .tiles-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .tile-card { min-height: 190px; }
}
