:root {
    --bg-color: #050505;
    --accent-blue: #00e5ff;
    --accent-purple: #7000ff;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(20, 20, 20, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --error-red: #ff5252;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: var(--bg-color);
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    overflow: hidden;
    position: relative;
}

.drag-region {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 32px;
    -webkit-app-region: drag;
    z-index: 1000;
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

.login-card {
    width: 420px;
    padding: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 229, 255, 0.05);
    animation: cardEntrance 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(40px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.logo-sphere {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    }

    to {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(112, 0, 255, 0.6);
    }
}

h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 4px;
    background: linear-gradient(to bottom, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.sub-desc {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 40px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .material-symbols-outlined {
    position: absolute;
    left: 16px;
    font-size: 20px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.input-field {
    width: 100%;
    height: 56px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0 20px 0 48px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
}

.input-field:focus {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}

.input-field:focus+.material-symbols-outlined {
    color: var(--accent-blue);
}

.error-msg {
    color: var(--error-red);
    font-size: 12px;
    margin-top: 8px;
    margin-left: 4px;
    display: none;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.btn-primary {
    width: 100%;
    height: 56px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
    transform: scale(0.98);
}

.footer {
    margin-top: 40px;
    font-size: 12px;
    color: var(--text-secondary);
}

.footer a {
    color: var(--accent-blue);
    text-decoration: none;
    margin-left: 5px;
}

.footer a:hover {
    text-decoration: underline;
}