Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 29 additions & 17 deletions frontend/src/App.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
:root {
--primary-color: #17419b;
--secondary-color: #38bdf8;
--accent-color: #5d24fb;
--primary-color: #0084ff;
--primary-dark: #0073e6;
--secondary-color: #1a96d4;
--accent-color: #31a24c;
--error-color: #dc2626;
--text-color: #1f2937;
--bg-color: #f3f4f6;
--bg-gradient: linear-gradient(135deg, #e0e7ff 0%, #f0fdfa 100%);
--border-color: #e5e7eb;
--user-message-bg: #e0f2fe;
--other-message-bg: #f1f5f9;
--system-message-bg: #c3e6fe;
--system-message-color: #ae09b4;
--text-color: #000;
--text-secondary: #65676b;
--bg-color: #ffffff;
--bg-secondary: #f0f0f0;
--bg-gradient: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
--border-color: #e5e5e5;
--user-message-bg: #0084ff;
--user-message-text: #ffffff;
--other-message-bg: #e5e5ea;
--other-message-text: #000;
--system-message-bg: #f0f0f0;
--system-message-color: #65676b;
}

* {
Expand All @@ -20,7 +25,7 @@
body {
min-height: 100vh;
background: var(--bg-gradient);
font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
overflow: hidden;
}

Expand All @@ -32,11 +37,11 @@ body {
}

.app-header {
background-color: white;
padding: 1rem;
border-bottom: 1px solid var(--border-color);
background-color: var(--primary-color);
padding: 1rem 1.5rem;
border-bottom: none;
width: 100%;
box-shadow: 0 2px 8px rgba(37,99,235,0.08);
box-shadow: 0 2px 8px rgba(0, 132, 255, 0.15);
z-index: 10;
position: relative;
}
Expand All @@ -48,7 +53,14 @@ body {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 1rem;
padding: 0;
}

.header-content h1 {
color: white;
font-size: 1.5rem;
font-weight: 600;
margin: 0;
}

.header-content nav {
Expand Down
94 changes: 67 additions & 27 deletions frontend/src/components/Auth/AuthForms.module.css
Original file line number Diff line number Diff line change
@@ -1,67 +1,107 @@
.form {
display: flex;
flex-direction: column;
gap: 12px;
width: 320px;
padding: 16px;
background: #ffffff;
border-radius: 8px;
box-shadow: 0 8px 24px rgba(0,0,0,0.08);
gap: var(--spacing-lg);
width: 100%;
max-width: 400px;
padding: var(--spacing-xl);
background-color: var(--light-bg);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-lg);
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: var(--text-primary);
transition: all var(--transition-normal);
}

.form h2 {
margin: 0 0 8px 0;
margin: 0;
text-align: center;
color: var(--text-primary);
font-size: 1.75rem;
font-weight: 700;
}

.form label {
display: flex;
flex-direction: column;
font-size: 14px;
gap: var(--spacing-xs);
font-size: 0.95rem;
font-weight: 500;
color: var(--text-secondary);
}

.form input {
margin-top: 4px;
padding: 10px 12px;
border: 1px solid #d0d7de;
border-radius: 6px;
padding: 12px 16px;
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
background-color: var(--light-bg); /* Matches card bg */
color: var(--text-primary);
font-size: 1rem;
transition: all var(--transition-fast);
}

.form input:focus {
border-color: var(--primary-blue);
box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.15);
outline: none;
}

.form button {
margin-top: 6px;
padding: 10px 12px;
background: #0d5bd7;
color: white;
margin-top: var(--spacing-sm);
padding: 12px;
background-color: var(--primary-blue);
color: #ffffff; /* Always white text on primary button */
border: none;
border-radius: 6px;
border-radius: var(--radius-md);
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all var(--transition-fast);
box-shadow: var(--shadow-sm);
}

.form button:hover:not(:disabled) {
background-color: var(--primary-blue-dark);
transform: translateY(-1px);
box-shadow: var(--shadow-md);
}

.form button:disabled {
opacity: 0.7;
cursor: not-allowed;
transform: none;
}

.error {
color: #b42318;
background: #fee4e2;
border: 1px solid #fda29b;
padding: 8px;
border-radius: 6px;
color: #d32f2f;
background-color: #ffebee;
border: 1px solid #ffcdd2;
padding: 12px;
border-radius: var(--radius-md);
font-size: 0.9rem;
text-align: center;
}

.link {
text-align: center;
margin-top: 8px;
font-size: 14px;
color: #656d76;
margin-top: var(--spacing-sm);
font-size: 0.95rem;
color: var(--text-secondary);
}

.link a {
color: #0d5bd7;
color: var(--primary-blue);
text-decoration: none;
font-weight: 500;
font-weight: 600;
transition: color var(--transition-fast);
}

.link a:hover {
color: var(--primary-blue-dark);
text-decoration: underline;
}

Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/Message/Message.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function Message({ user, text, sender, timestamp, updatedAt, onDe

return (
<div
className={styles.message}
className={`${styles.message} ${user === sender ? styles['user-message'] : ''}`}
onMouseEnter={() => setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
style={{ position: 'relative' }}
Expand Down Expand Up @@ -132,4 +132,4 @@ export default function Message({ user, text, sender, timestamp, updatedAt, onDe
)}
</div>
);
};
};
Loading