Update static/styles.css

This commit is contained in:
Sangye Ince-Johannsen 2025-02-05 05:32:20 +00:00
parent 8102a827c3
commit bba7f3d1bb

View file

@ -1,185 +1,104 @@
/* Base styles */
:root {
--bg-color: #18181b;
--card-bg: #27272a;
--input-bg: #3f3f46;
--text-primary: #fafafa;
--text-secondary: #a1a1aa;
--accent: #14b8a6;
--accent-hover: #2dd4bf;
--border-color: #52525b;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #282828;
color: #ebdbb2;
font-family: sans-serif;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
min-height: 100vh;
background-color: var(--bg-color);
color: var(--text-primary);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
}
/* Main container */
.main-container {
background-color: #32302f;
border-radius: 12px;
padding: 2rem;
margin: 2rem auto;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
width: 90%;
max-width: 800px;
display: flex;
flex-direction: column;
align-items: center;
.card {
background-color: var(--card-bg);
border-radius: 0.75rem;
padding: 2rem;
width: 100%;
max-width: 24rem;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
/* Logo styling */
.logo-container {
width: 480px;
height: auto;
margin: 1rem 0 2rem 0;
display: flex;
justify-content: center;
background: transparent;
display: flex;
justify-content: center;
margin-bottom: 2rem;
}
.logo {
max-width: 100%;
height: auto;
background: transparent;
height: 5rem;
width: auto;
}
/* Header styling */
header {
text-align: center;
margin-bottom: 2rem;
width: 100%;
}
h1 {
margin: 0;
font-size: 1.8rem;
}
/* Clock styling */
.clock {
font-size: 96px;
font-weight: bold;
color: #8ec07c;
text-align: center;
margin: 1.5rem 0;
font-family: monospace;
}
/* Message containers and content */
.message-container {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 2rem 0;
}
.status-message,
.error-message,
.success-message {
width: 100%;
max-width: 600px;
font-size: 1.1rem;
text-align: center;
margin: 1.5rem 0;
}
.status-message,
.success-message {
color: #b8bb26;
}
.error-message {
color: #fb4934;
}
.success-message p {
margin: 0.5rem 0;
}
/* Form styling */
form {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
margin: 1rem 0;
display: flex;
flex-direction: column;
gap: 1rem;
}
input[type="text"],
input[type="email"] {
width: 80%;
max-width: 400px;
padding: 12px;
margin-bottom: 1rem;
font-size: 16px;
background-color: #3c3836;
border: 1px solid #665c54;
color: #ebdbb2;
border-radius: 6px;
input {
width: 100%;
padding: 0.5rem 1rem;
background-color: var(--input-bg);
border: 1px solid var(--border-color);
border-radius: 0.375rem;
color: var(--text-primary);
font-size: 1rem;
transition: border-color 0.15s ease;
}
input[type="submit"] {
padding: 12px 24px;
font-size: 16px;
background-color: #689d6a;
border: none;
border-radius: 6px;
color: #ebdbb2;
cursor: pointer;
transition: background-color 0.2s;
input:focus {
outline: none;
border-color: var(--accent);
}
input[type="submit"]:hover {
background-color: #8ec07c;
button {
width: 100%;
padding: 0.5rem 1rem;
background-color: var(--accent);
color: var(--text-primary);
border: none;
border-radius: 0.375rem;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: background-color 0.15s ease;
}
/* Button styling */
.button-container {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
margin: 2rem 0;
button:hover {
background-color: var(--accent-hover);
}
.back-button {
display: inline-block;
padding: 12px 24px;
color: #83a598;
text-decoration: none;
font-size: 16px;
border: 1px solid #83a598;
border-radius: 6px;
transition: all 0.2s;
text-align: center;
.info-text {
margin-top: 1.5rem;
text-align: center;
color: var(--text-secondary);
font-size: 0.875rem;
line-height: 1.5;
}
.back-button:hover {
background-color: #83a598;
color: #282828;
.countdown {
font-family: monospace;
}
/* Footer styling */
.footer-spacer {
flex-grow: 1;
}
footer {
text-align: center;
color: #a89984;
font-size: 0.9rem;
margin-top: 2rem;
width: 100%;
}
footer p {
margin: 0;
}
/* Focus states for accessibility */
input:focus,
.back-button:focus {
outline: 2px solid #83a598;
outline-offset: 2px;
}
.registration-closed {
text-align: center;
color: #ef4444;
padding: 1rem 0;
}