:root {
    --background-color: #0b0c10;
    --primary-text-color: #e6e6e6;
    --accent-color: #66fcf1;
    --accent-hover-color: #45a29e;
    --widget-background-color: rgba(28, 40, 51, 0.8);
    --border-color: rgba(102, 252, 241, 0.3);
    --font-family: 'Share Tech Mono', monospace;
}

/* General Body Styles */
body {
    background-color: var(--background-color);
    color: var(--primary-text-color);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Starry Background */
.stars, .twinkling {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.stars {
    background: #000 url(https://www.script-tutorials.com/demos/360/images/stars.png) repeat top center;
    z-index: 0;
}

.twinkling {
    background: transparent url(https://www.script-tutorials.com/demos/360/images/twinkling.png) repeat top center;
    z-index: 1;
    animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
    from {background-position:0 0;}
    to {background-position:-10000px 5000px;}
}

/* App Layout */
#app-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 1em;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 2em;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--accent-color);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 40px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.5em;
    margin: 0;
    color: var(--primary-text-color);
}

nav a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.1em;
}

nav a:hover {
    color: var(--accent-hover-color);
    text-decoration: underline;
}

/* Main Content & Widgets */
#main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2em;
}

.widget {
    background: var(--widget-background-color);
    border: 1px solid var(--border-color);
    padding: 2em;
    margin-bottom: 2em;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 0 15px var(--border-color);
}

.widget h2 {
    margin-top: 0;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 0.5em;
    color: var(--accent-color);
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
}

input, button {
    font-family: var(--font-family);
    background: #1c2833;
    color: var(--primary-text-color);
    border: 1px solid var(--border-color);
    padding: 12px;
    margin-bottom: 15px;
}

input:focus {
    outline: none;
    border-color: var(--accent-color);
}

button {
    cursor: pointer;
    background-color: var(--accent-color);
    color: var(--background-color);
    font-weight: bold;
    border: none;
}

button:hover {
    background-color: var(--accent-hover-color);
}

/* Error Message */
.error-message {
    color: #ff4d4d;
    margin-bottom: 15px;
    text-align: center;
    font-size: 0.9em;
}

/* Auth Links */
#auth-links {
    display: flex;
    align-items: center;
    color: var(--primary-text-color);
}
#auth-links a {
    color: var(--accent-color);
    text-decoration: none;
    margin-left: 10px;
}
#auth-links button {
    margin-left: 15px;
}

#user-info span {
     margin-right: 15px;
}
