/* Global Reset & Font */
* { margin: 0; padding: 0; box-sizing: border-box; outline: none; user-select: none; }
body {
    font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
    background-color: #1a1a1a; /* Dark background matching launcher */
    color: #e0e0e0;
    overflow: hidden; /* Prevent scrollbars on small popups */
    width: 100%;
    height: 100vh;
    font-size: 13px; /* Slightly smaller base font */
}

/* --- Generic Content (For Gonggao/Gonglue) --- */
.page-container {
    padding: 20px;
    height: 100%;
    overflow-y: auto; /* Allow scrolling for long text */
}
.page-container::-webkit-scrollbar { width: 6px; }
.page-container::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }

.page-title { font-size: 18px; color: #3aa8ff; margin-bottom: 15px; font-weight: bold; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.page-section { background: rgba(255,255,255,0.03); border-radius: 4px; padding: 10px; margin-bottom: 10px; border: 1px solid rgba(255,255,255,0.05); }
.page-section h2 { font-size: 14px; color: #ddd; margin-bottom: 5px; font-weight: bold; }
.page-content { line-height: 1.6; color: #ccc; }
.page-time { color: #666; font-size: 12px; display: block; margin-top: 5px; }
ul.page-list { list-style: none; padding-left: 10px; }
ul.page-list li { position: relative; padding-left: 15px; margin-bottom: 5px; }
ul.page-list li::before { content: "•"; color: #3aa8ff; position: absolute; left: 0; }

/* --- Register & Password Box (Compact Mode) --- */
.reg-box {
    width: 100%;
    height: 100%;
    background: transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center; /* Vertically center */
    justify-content: center;
}

/* Body Content */
.reg-body {
    width: 300px; /* Slightly narrower */
    z-index: 2;
    text-align: center;
    padding: 10px 0;
}

.reg-body > h1 {
    color: #fff;
    font-size: 20px; /* Smaller title */
    margin-bottom: 20px; /* Less margin */
    font-weight: normal;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Inputs & Selects */
.input-line {
    margin-bottom: 10px; /* Tighter spacing */
    position: relative;
}

input[type=text], input[type=password], select {
    width: 100%;
    height: 36px; /* Compact height (was 44) */
    padding: 0 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    color: #fff;
    font-size: 13px;
    transition: all 0.2s;
}

input:focus, select:focus {
    border-color: #3aa8ff;
    background: rgba(0, 0, 0, 0.5);
}

select option { background: #222; color: #fff; }

/* Placeholders */
::placeholder { color: #777; }

/* Validation Tips */
.tips {
    font-size: 12px;
    color: #ff5555;
    text-align: left;
    height: 16px; /* Smaller tip space */
    line-height: 16px;
    padding-left: 2px;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* VCode Line */
.vcode-line { display: flex; align-items: center; justify-content: space-between; }
.vcode-line p { width: 100%; display: flex; }
.vcode-line input { width: 65% !important; border-radius: 3px 0 0 3px; }
.vcode-line img {
    width: 35%;
    height: 36px; /* Match input height */
    cursor: pointer;
    border-radius: 0 3px 3px 0;
    opacity: 0.9;
    border: 1px solid rgba(255,255,255,0.1);
    border-left: none;
}

/* Button */
button#submit-data, .reg-box button, .change-btn {
    width: 100%;
    height: 40px; /* Compact height (was 48) */
    margin-top: 5px;
    background: linear-gradient(135deg, #3aa8ff 0%, #0066cc 100%);
    border: none;
    border-radius: 3px;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(58, 168, 255, 0.2);
}

button#submit-data:hover, .reg-box button:hover, .change-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(58, 168, 255, 0.4);
}

button:active { transform: translateY(1px); }

/* Result Box */
.result-box { padding: 20px 0; text-align: center; color: #eee; }
.result-box .icon img { width: 48px; height: 48px; margin-bottom: 15px; }

/* Change Password specific */
.change-box { width: 100%; }
.change-body { padding-top: 0; margin: auto; width: 300px; position: relative; z-index: 2;}

