* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}
.blob-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: #4f46e5; animation-delay: 0s; }
.blob-2 { bottom: -10%; right: -10%; width: 400px; height: 400px; background: #52B54B; animation-delay: -5s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 50px); }
}

.main-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 10;
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease-out;
}

.logo-section img {
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
    border-radius: 18px;
    box-shadow: 0 0 20px rgba(82, 181, 75, 0.3);
}

.logo-section h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-section p {
    font-size: 14px;
    color: var(--text-sub);
}

.form-container {
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur-amt));
    -webkit-backdrop-filter: blur(var(--blur-amt));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-sub);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(148, 163, 184, 0.4);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(82, 181, 75, 0.15);
    background: rgba(15, 23, 42, 0.8);
}

.form-group input[readonly] {
    opacity: 0.6;
    cursor: not-allowed;
    border-style: dashed;
}

.form-group input[type="submit"] {
    background: linear-gradient(135deg, var(--primary) 0%, #3d8c38 100%);
    color: white;
    cursor: pointer;
    font-weight: 600;
    border: none;
    margin-top: 12px;
    font-size: 16px;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 15px -3px rgba(82, 181, 75, 0.3);
    width: 100%;
}

.form-group input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 20px -3px rgba(82, 181, 75, 0.4);
}

.form-group input[type="submit"]:active {
    transform: translateY(0);
}

.status-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.status-link a {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-link a::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.status-link a:hover {
    color: white;
}

/* Footer */
.footer {
    margin-top: 40px;
    text-align: center;
    animation: fadeIn 1s ease-out 0.5s both;
}

.footer-content {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.05);
}

.footer-content a {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.footer-content a:hover {
    color: white;
}

.github-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #1e293b;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-text {
    font-size: 15px;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: left;
    background: rgba(0,0,0,0.2);
    padding: 16px;
    border-radius: 12px;
}

.modal-text .highlight {
    color: #ef4444;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.modal-btn {
    background: white;
    color: #0f172a;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
}

.modal-btn:hover {
    background: #f1f5f9;
    transform: scale(1.02);
}

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* 注册须知面板 */
.notice-card {
    margin-top: 20px;
    padding: 18px 20px;
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur-amt));
    -webkit-backdrop-filter: blur(var(--blur-amt));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 15px 35px -12px rgba(0, 0, 0, 0.45);
    animation: fadeInUp 0.8s ease-out 0.15s both;
}
.notice-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}
.notice-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.notice-list li {
    position: relative;
    padding-left: 16px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-sub);
}
.notice-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--magenta, #FF3D9A);
    box-shadow: 0 0 6px var(--magenta, #FF3D9A);
}
.notice-list li b { color: #fff; font-weight: 600; }
