:root {
--primary-color: #3b82f6;
--primary-hover: #2563eb;
--primary-light: #eff6ff;
--danger-color: #ef4444;
--danger-hover: #dc2626;
--success-color: #10b981;
--success-hover: #059669;
--text-color: #111827;
--text-secondary: #6b7280;
--background-color: #ffffff;
--surface-color: #f8fafc;
--border-color: #e2e8f0;
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
@media (prefers-color-scheme: dark) {
:root {
--background-color: #0f172a;
--surface-color: #1e293b;
--text-color: #f1f5f9;
--text-secondary: #94a3b8;
--border-color: #334155;
--primary-light: #1e293b;
}
}
html,
body {
max-width: 100vw;
overflow-x: hidden;
}
body {
margin: 0;
padding: 0;
font-family:
-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell",
sans-serif;
color: var(--text-color);
background: linear-gradient(135deg, var(--background-color) 0%, var(--surface-color) 100%);
min-height: 100vh;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
a {
color: inherit;
text-decoration: none;
}
@media (prefers-color-scheme: dark) {
html {
color-scheme: dark;
}
}
.container {
padding: 2rem;
max-width: 1200px;
margin: 0 auto;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.auth-container {
background: var(--background-color);
border-radius: 1rem;
box-shadow: var(--shadow-lg);
padding: 2rem;
width: 100%;
max-width: 440px;
border: 1px solid var(--border-color);
}
.auth-container h1 {
text-align: center;
margin-bottom: 2rem;
color: var(--text-color);
font-size: 1.875rem;
font-weight: 700;
}
.welcome-section {
text-align: center;
padding: 2rem;
}
.welcome-section h1 {
color: var(--success-color);
font-size: 2rem;
margin-bottom: 1rem;
}
.user-info {
background: var(--surface-color);
border-radius: 0.75rem;
padding: 1.5rem;
margin: 1.5rem 0;
border: 1px solid var(--border-color);
}
.user-info p {
margin: 0.5rem 0;
display: flex;
align-items: center;
gap: 0.5rem;
}
.user-info strong {
color: var(--text-color);
}
.verification-badge {
display: inline-flex;
align-items: center;
gap: 0.25rem;
padding: 0.25rem 0.5rem;
border-radius: 0.375rem;
font-size: 0.875rem;
font-weight: 500;
}
.verified {
background: #dcfce7;
color: #166534;
}
.unverified {
background: #fef3c7;
color: #92400e;
}
.button {
padding: 0.75rem 1.5rem;
border: none;
border-radius: 0.5rem;
font-size: 0.875rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
text-decoration: none;
width: 100%;
}
.button:hover {
transform: translateY(-1px);
box-shadow: var(--shadow);
}
.button:active {
transform: translateY(0);
}
.button:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
}
.button-primary {
background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
color: white;
border: 1px solid var(--primary-color);
}
.button-primary:hover {
background: linear-gradient(135deg, var(--primary-hover) 0%, #1d4ed8 100%);
}
.button-secondary {
background: var(--surface-color);
color: var(--text-secondary);
border: 1px solid var(--border-color);
}
.button-secondary:hover {
background: var(--border-color);
color: var(--text-color);
}
.button-danger {
background: linear-gradient(135deg, var(--danger-color) 0%, var(--danger-hover) 100%);
color: white;
border: 1px solid var(--danger-color);
}
.button-danger:hover {
background: linear-gradient(135deg, var(--danger-hover) 0%, #b91c1c 100%);
}
.button-social {
background: white;
color: #374151;
border: 1px solid var(--border-color);
}
.button-social:hover {
background: var(--surface-color);
}
.button-google {
background: #4285f4;
color: white;
}
.button-google:hover {
background: #3367d6;
}
.button-github {
background: #24292e;
color: white;
}
.button-github:hover {
background: #1a1e22;
}
.button-discord {
background: #5865f2;
color: white;
}
.button-discord:hover {
background: #4752c4;
}
/* Device Authorization Styles */
.device-auth-form {
width: 100%;
max-width: 500px;
}
.input-group {
display: flex;
gap: 0.5rem;
margin: 1rem 0;
}
.input {
padding: 0.875rem 1rem;
border: 1px solid var(--border-color);
border-radius: 0.5rem;
font-size: 0.875rem;
width: 100%;
transition: all 0.2s ease;
background: var(--background-color);
color: var(--text-color);
}
.input:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
background: white;
}
.input::placeholder {
color: var(--text-secondary);
}
.auth-section {
margin: 1.5rem 0;
}
.auth-section:first-of-type {
margin-top: 0;
}
.auth-section h2 {
margin-bottom: 1rem;
color: var(--text-color);
font-size: 1rem;
font-weight: 600;
text-align: center;
}
.form-group {
display: flex;
flex-direction: column;
gap: 0.75rem;
margin-bottom: 1rem;
}
.divider {
display: flex;
align-items: center;
margin: 2rem 0;
color: var(--text-secondary);
font-size: 0.875rem;
}
.divider::before,
.divider::after {
content: "";
flex: 1;
height: 1px;
background: var(--border-color);
}
.divider::before {
margin-right: 1rem;
}
.divider::after {
margin-left: 1rem;
}
.social-buttons {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.loading {
display: flex;
align-items: center;
justify-content: center;
padding: 3rem;
color: var(--text-secondary);
}
.error-message {
color: var(--danger-color);
font-size: 0.875rem;
margin-top: 0.5rem;
text-align: center;
}
.button-primary {
background-color: var(--primary-color);
color: white;
}
.button-primary:hover {
background-color: var(--primary-hover);
}
.button-primary:disabled {
background-color: #9ca3af;
cursor: not-allowed;
}
.button-secondary {
background-color: #6b7280;
color: white;
}
.button-secondary:hover {
background-color: #4b5563;
}
.button-group {
display: flex;
gap: 0.5rem;
margin: 1rem 0;
}
.device-auth-details {
width: 100%;
max-width: 600px;
}
.device-info {
background-color: #f9fafb;
border: 1px solid #e5e7eb;
border-radius: 0.5rem;
padding: 1rem;
margin: 1rem 0;
}
.device-info p {
margin: 0.5rem 0;
}
.auth-actions {
margin: 1rem 0;
}
.success-message {
text-align: center;
color: #059669;
}
.error {
color: var(--danger-color);
margin: 0.5rem 0;
}
.auth-section {
margin: 2rem 0;
padding: 1.5rem;
border: 1px solid #e5e7eb;
border-radius: 0.5rem;
width: 100%;
max-width: 400px;
}
.auth-section h1 {
text-align: center;
margin-bottom: 2rem;
color: var(--text-color);
}
.auth-section h2 {
margin-bottom: 1rem;
color: var(--text-color);
font-size: 1.25rem;
}
.auth-section > div {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.auth-section .input {
margin-bottom: 0.5rem;
}
.auth-section .button {
margin-top: 0.5rem;
}
/* Responsive design */
@media (max-width: 640px) {
.container {
padding: 1rem;
}
.auth-container {
padding: 1.5rem;
border-radius: 0.75rem;
}
.auth-container h1 {
font-size: 1.5rem;
}
}
@media (prefers-color-scheme: dark) {
.button-social {
background: var(--surface-color);
color: var(--text-color);
}
.button-social:hover {
background: var(--border-color);
}
.verification-badge.verified {
background: #064e3b;
color: #6ee7b7;
}
.verification-badge.unverified {
background: #451a03;
color: #fcd34d;
}
}