VinitT's picture
Changed UI
e8fa2bc
raw
history blame
3.69 kB
:root {
--primary-color: #6366f1;
--primary-light: #818cf8;
--primary-dark: #4f46e5;
--background-color: #0f172a;
--card-background: #1e293b;
--text-primary: rgba(255, 255, 255, 0.95);
--text-secondary: rgba(255, 255, 255, 0.7);
--error-color: #ef4444;
--border-color: rgba(255, 255, 255, 0.08);
--shadow-color: rgba(0, 0, 0, 0.25);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
body {
background: var(--background-color);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 1.5rem;
background-image: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1) 0%, rgba(15, 23, 42, 0) 80%);
}
.auth-container {
width: 100%;
max-width: 420px;
}
.auth-card {
background: var(--card-background);
padding: 2.5rem;
border-radius: 1.25rem;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
border: 1px solid var(--border-color);
backdrop-filter: blur(10px);
animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.auth-title {
color: var(--primary-light);
font-size: 2.25rem;
text-align: center;
margin-bottom: 0.75rem;
font-weight: 700;
letter-spacing: -0.5px;
}
.auth-subtitle {
color: var(--text-secondary);
text-align: center;
margin-bottom: 2rem;
font-size: 1rem;
}
.auth-form {
display: flex;
flex-direction: column;
gap: 1.25rem;
}
.form-group {
position: relative;
}
.input-icon {
position: absolute;
left: 1rem;
top: 50%;
transform: translateY(-50%);
font-size: 1rem;
color: var(--text-secondary);
}
.auth-input {
width: 100%;
background: rgba(15, 23, 42, 0.5);
border: 1px solid var(--border-color);
border-radius: 0.75rem;
padding: 1rem 1rem 1rem 2.75rem;
font-size: 1rem;
color: var(--text-primary);
transition: all 0.2s ease;
}
.auth-input:focus {
outline: none;
border-color: var(--primary-light);
box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}
.auth-input::placeholder {
color: var(--text-secondary);
opacity: 0.7;
}
.auth-button {
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
color: white;
border: none;
padding: 1rem;
border-radius: 0.75rem;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
margin-top: 0.5rem;
}
.auth-button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}
.auth-button:active {
transform: translateY(0);
}
.auth-footer {
text-align: center;
color: var(--text-secondary);
margin-top: 2rem;
font-size: 0.9rem;
}
.auth-link {
color: var(--primary-light);
text-decoration: none;
font-weight: 600;
transition: all 0.2s ease;
}
.auth-link:hover {
opacity: 0.8;
text-decoration: underline;
}
.error-messages {
background: rgba(239, 68, 68, 0.1);
border: 1px solid var(--error-color);
border-radius: 0.75rem;
padding: 1rem;
margin-bottom: 0.5rem;
}
.error-message {
color: var(--error-color);
font-size: 0.9rem;
text-align: center;
}
/* Responsive Design */
@media (max-width: 480px) {
.auth-card {
padding: 2rem 1.5rem;
}
.auth-title {
font-size: 2rem;
}
.auth-input {
padding: 0.875rem 0.875rem 0.875rem 2.5rem;
}
}