diff --git a/application/access_module/__pycache__/access_api.cpython-313.pyc b/application/access_module/__pycache__/access_api.cpython-313.pyc
index 3b74014..eb82d78 100644
Binary files a/application/access_module/__pycache__/access_api.cpython-313.pyc and b/application/access_module/__pycache__/access_api.cpython-313.pyc differ
diff --git a/application/access_module/access_api.py b/application/access_module/access_api.py
index 6347024..4d65a27 100644
--- a/application/access_module/access_api.py
+++ b/application/access_module/access_api.py
@@ -111,7 +111,7 @@ def login():
if 'user' not in session.keys():
session['user'] = None
- return render_template("login.html")
+ return render_template("login.html", sign_up_enabled=instance_config['signup_enabled'])
@access_api.route('/dashboard')
def dashboard():
diff --git a/application/access_module/static/css/logins-dark.css b/application/access_module/static/css/logins-dark.css
new file mode 100644
index 0000000..3379eb5
--- /dev/null
+++ b/application/access_module/static/css/logins-dark.css
@@ -0,0 +1,58 @@
+:root {
+ --background: #121212;
+ --background-text: #ffffff;
+
+ --surface: #121212;
+ --surface-text: #ffffff;
+
+ --surface-two: #252525;
+
+ --error: #CF6679;
+ --error-text: #000000;
+
+ --primary-color: #4e76aa;
+ --primary-text: #ffffff;
+
+ --secondary-color: #03DAC6;
+ --secondary-text: #000000;
+
+ --elevation-low: 0 1px 3px rgba(0, 0, 0, 0.2);
+ --elevation-medium: 0 3px 6px rgba(0, 0, 0, 0.3);
+ --elevation-high: 0 10px 20px rgba(0, 0, 0, 0.4);
+
+ --radius: 10px;
+
+}
+@media (prefers-color-scheme: dark) {
+ body, html {
+ background: var(--background) !important;
+ }
+
+ .uk-card {
+ background: var(--surface);
+ color: var(--surface-text);
+ box-shadow: var(--elevation-low);
+ border-radius: var(--radius);
+ }
+
+ .uk-card.uk-card-default::before {
+ content: '';
+ position: absolute;
+ border-radius: var(--radius);
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ background-color: rgba(255, 255, 255, 0.05);
+ pointer-events: none;
+ }
+
+ .uk-input.uk-disabled {
+ background-color: var(--background-secondary);
+ }
+
+ .uk-input {
+ border-color: var(--border-color);
+ box-shadow: var(--elevation-low);
+ }
+}
\ No newline at end of file
diff --git a/application/access_module/templates/login.html b/application/access_module/templates/login.html
index 74aa44b..7c3c246 100644
--- a/application/access_module/templates/login.html
+++ b/application/access_module/templates/login.html
@@ -15,14 +15,14 @@
-
+
-
+
@@ -30,7 +30,9 @@
+ {% if signup_enabled %}
@@ -96,6 +99,7 @@
+ {% endif %}
diff --git a/application/items/templates/index.html b/application/items/templates/index.html
index 4689944..fc7867b 100644
--- a/application/items/templates/index.html
+++ b/application/items/templates/index.html
@@ -23,17 +23,22 @@
+
{% if session['user']['flags']['darkmode'] %}
{% else %}
{% endif %}
-