imetting_frontend/src/pages/HomePage.css

328 lines
9.0 KiB
CSS
Raw Normal View History

2025-09-30 04:13:54 +00:00
/* HomePage General Styles */
:root {
--accent-color: #6f42c1;
--accent-color-dark: #5a32a3;
--text-dark: #212529;
--text-light: #6c757d;
--background-light: #f8f9fa;
--card-border: #e9ecef;
/* Icon & Card Accent Colors */
--color-1: #4A90E2; /* Blue */
--color-1-bg: #e9f2ff;
--color-2: #50E3C2; /* Teal */
--color-2-bg: #e4fbf7;
--color-3: #9013FE; /* Purple */
--color-3-bg: #f4e7ff;
--color-4: #F5A623; /* Orange */
--color-4-bg: #fff6e9;
--color-5: #7ED321; /* Green */
--color-5-bg: #f2fae9;
--color-6: #E24A90; /* Pink */
--color-6-bg: #ffebf5;
}
2025-08-05 01:44:28 +00:00
.homepage {
width: 100%;
2025-09-30 04:13:54 +00:00
min-height: 100vh;
background-color: var(--background-light);
color: var(--text-dark);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
2025-08-05 01:44:28 +00:00
}
/* Header */
.homepage-header {
2025-09-30 04:13:54 +00:00
background: rgba(255, 255, 255, 0.85);
2025-08-05 01:44:28 +00:00
backdrop-filter: blur(10px);
2025-09-30 04:13:54 +00:00
border-bottom: 1px solid var(--card-border);
position: sticky;
top: 0;
z-index: 100;
2025-08-05 01:44:28 +00:00
}
.header-content {
2025-09-30 04:13:54 +00:00
max-width: 1280px;
2025-08-05 01:44:28 +00:00
margin: 0 auto;
2025-09-30 04:13:54 +00:00
padding: 1rem 2rem;
2025-08-05 01:44:28 +00:00
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
display: flex;
align-items: center;
2025-09-30 04:13:54 +00:00
gap: 0.75rem;
font-size: 1.75rem;
font-weight: 700;
2025-08-05 01:44:28 +00:00
}
.logo-icon {
2025-09-30 04:13:54 +00:00
width: 36px;
height: 36px;
color: var(--accent-color);
2025-08-05 01:44:28 +00:00
}
2025-09-30 04:13:54 +00:00
.logo-text {
color: var(--text-dark);
2025-09-11 05:16:24 +00:00
}
2025-10-21 09:30:30 +00:00
.header-actions {
display: flex;
align-items: center;
gap: 1rem;
}
.download-link,
2025-08-05 01:44:28 +00:00
.login-btn {
2025-10-21 09:30:30 +00:00
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
2025-09-30 04:13:54 +00:00
padding: 0.6rem 1.6rem;
2025-10-21 09:30:30 +00:00
border: 2px solid var(--accent-color);
2025-08-05 01:44:28 +00:00
border-radius: 25px;
font-size: 0.9rem;
2025-09-30 04:13:54 +00:00
font-weight: 500;
2025-10-21 09:30:30 +00:00
line-height: 1;
transition: all 0.3s ease;
vertical-align: middle;
box-sizing: border-box;
height: auto;
margin: 0;
font-family: inherit;
}
.download-link {
color: var(--accent-color);
background-color: transparent;
text-decoration: none;
}
.download-link svg,
.login-btn svg {
flex-shrink: 0;
}
.download-link:hover {
background-color: var(--accent-color);
color: white;
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(111, 66, 193, 0.2);
}
.login-btn {
background-color: var(--accent-color);
color: white;
cursor: pointer;
2025-08-05 01:44:28 +00:00
}
.login-btn:hover {
2025-09-30 04:13:54 +00:00
background-color: var(--accent-color-dark);
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(111, 66, 193, 0.2);
2025-08-05 01:44:28 +00:00
}
/* Hero Section */
.hero {
2025-09-30 04:13:54 +00:00
padding: 7rem 2rem;
2025-08-05 01:44:28 +00:00
text-align: center;
margin: 0 auto;
2025-09-30 04:13:54 +00:00
background: linear-gradient(135deg, var(--accent-color), var(--accent-color-dark));
color: #fff;
position: relative;
overflow: hidden;
}
.hero::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
transform-origin: center center;
animation: shimmer 15s linear infinite;
}
@keyframes shimmer {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.hero-content {
max-width: 800px;
margin: 0 auto;
position: relative; /* Ensure content is above the animation */
z-index: 1;
2025-08-05 01:44:28 +00:00
}
.hero-title {
2025-09-30 04:13:54 +00:00
font-size: 4rem;
font-weight: 800;
line-height: 1.2;
2025-08-05 01:44:28 +00:00
margin-bottom: 1.5rem;
2025-09-30 04:13:54 +00:00
color: #fff;
2025-08-05 01:44:28 +00:00
}
.hero-subtitle {
2025-12-16 10:56:28 +00:00
font-size: 1.5rem;
2025-08-05 01:44:28 +00:00
margin-bottom: 3rem;
2025-09-30 04:13:54 +00:00
color: rgba(255, 255, 255, 0.85);
max-width: 650px;
2025-08-05 01:44:28 +00:00
margin-left: auto;
margin-right: auto;
2025-09-30 04:13:54 +00:00
line-height: 1.7;
2025-08-05 01:44:28 +00:00
}
.cta-button {
2025-09-30 04:13:54 +00:00
background: #fff;
color: var(--accent-color);
2025-08-05 01:44:28 +00:00
border: none;
2025-09-30 04:13:54 +00:00
padding: 1.1rem 3rem;
2025-08-05 01:44:28 +00:00
font-size: 1.1rem;
font-weight: 600;
border-radius: 50px;
cursor: pointer;
transition: all 0.3s ease;
2025-09-30 04:13:54 +00:00
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
2025-08-05 01:44:28 +00:00
}
.cta-button:hover {
2025-09-30 04:13:54 +00:00
transform: translateY(-3px) scale(1.05);
box-shadow: 0 7px 25px rgba(0, 0, 0, 0.15);
2025-08-05 01:44:28 +00:00
}
/* Features Section */
.features {
padding: 6rem 2rem;
2025-09-30 04:13:54 +00:00
background-color: var(--background-light);
2025-08-05 01:44:28 +00:00
}
.features-container {
2025-09-30 04:13:54 +00:00
max-width: 1280px;
2025-08-05 01:44:28 +00:00
margin: 0 auto;
}
.features-title {
text-align: center;
2025-09-30 04:13:54 +00:00
font-size: 2.8rem;
2025-08-05 01:44:28 +00:00
margin-bottom: 4rem;
2025-09-30 04:13:54 +00:00
font-weight: 700;
color: var(--text-dark);
2025-08-05 01:44:28 +00:00
}
.features-grid {
display: grid;
2025-09-30 04:13:54 +00:00
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 2.5rem;
2025-08-05 01:44:28 +00:00
}
.feature-card {
2025-09-30 04:13:54 +00:00
padding: 2.5rem;
border-radius: 16px;
text-align: left;
border: 1px solid var(--card-border);
2025-08-05 01:44:28 +00:00
transition: all 0.3s ease;
2025-09-30 04:13:54 +00:00
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
border-top-width: 4px;
2025-08-05 01:44:28 +00:00
}
.feature-card:hover {
2025-09-30 04:13:54 +00:00
transform: translateY(-8px);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
2025-08-05 01:44:28 +00:00
}
.feature-icon {
width: 48px;
height: 48px;
2025-09-30 04:13:54 +00:00
margin-bottom: 1.5rem;
stroke-width: 1.5;
2025-08-05 01:44:28 +00:00
}
2025-09-30 04:13:54 +00:00
/* Icon & Card Colors */
.feature-card-1 { border-top-color: var(--color-1); background-color: var(--color-1-bg); }
.feature-icon-1 { color: var(--color-1); }
2025-08-05 01:44:28 +00:00
2025-09-30 04:13:54 +00:00
.feature-card-2 { border-top-color: var(--color-2); background-color: var(--color-2-bg); }
.feature-icon-2 { color: var(--color-2); }
2025-08-05 01:44:28 +00:00
2025-09-30 04:13:54 +00:00
.feature-card-3 { border-top-color: var(--color-3); background-color: var(--color-3-bg); }
.feature-icon-3 { color: var(--color-3); }
2025-08-05 01:44:28 +00:00
2025-09-30 04:13:54 +00:00
.feature-card-4 { border-top-color: var(--color-4); background-color: var(--color-4-bg); }
.feature-icon-4 { color: var(--color-4); }
2025-08-05 01:44:28 +00:00
2025-09-30 04:13:54 +00:00
.feature-card-5 { border-top-color: var(--color-5); background-color: var(--color-5-bg); }
.feature-icon-5 { color: var(--color-5); }
2025-08-05 01:44:28 +00:00
2025-09-30 04:13:54 +00:00
.feature-card-6 { border-top-color: var(--color-6); background-color: var(--color-6-bg); }
.feature-icon-6 { color: var(--color-6); }
2025-08-05 01:44:28 +00:00
2025-09-30 04:13:54 +00:00
.feature-card h3 {
font-size: 1.5rem;
margin-bottom: 1rem;
2025-08-05 01:44:28 +00:00
font-weight: 600;
2025-09-30 04:13:54 +00:00
color: var(--text-dark);
2025-08-05 01:44:28 +00:00
}
2025-09-30 04:13:54 +00:00
.feature-card p {
color: var(--text-light);
line-height: 1.6;
2025-09-11 05:16:24 +00:00
}
/* Footer */
.homepage-footer {
text-align: center;
2025-09-30 04:13:54 +00:00
padding: 3rem 2rem;
background: #e9ecef;
2025-09-11 05:16:24 +00:00
font-size: 0.9rem;
2025-09-30 04:13:54 +00:00
color: var(--text-light);
2025-09-11 05:16:24 +00:00
}
.homepage-footer p {
margin: 0.5rem 0;
2025-09-30 04:13:54 +00:00
}
/* Modal Styles */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(5px); }
.login-modal { background: white; color: #333; padding: 2.5rem; border-radius: 20px; width: 90%; max-width: 420px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.modal-header h2 { margin: 0; font-size: 1.75rem; font-weight: 600; }
.close-btn { background: none; border: none; cursor: pointer; color: #888; padding: 0.5rem; border-radius: 50%; transition: all 0.3s ease; }
.close-btn:hover { background: #f1f3f5; color: #333; }
.login-form { display: flex; flex-direction: column; gap: 1rem; }
2025-09-30 04:13:54 +00:00
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; color: #555; }
.form-group input[type="text"],
.form-group input[type="password"] { padding: 0.85rem 1rem; border: 1px solid #ced4da; border-radius: 10px; font-size: 1rem; transition: all 0.3s ease; }
.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus { outline: none; border-color: #8a63d2; box-shadow: 0 0 0 4px rgba(111, 66, 193, 0.1); }
.form-group.password-group { position: relative; margin-bottom: 0.5rem; }
2025-12-26 08:59:05 +00:00
.password-input-wrapper { position: relative; display: flex; align-items: center; }
.password-input-wrapper input { width: 100%; padding-right: 45px; }
.password-toggle-btn { position: absolute; right: 12px; background: none; border: none; color: #888; cursor: pointer; padding: 8px; display: flex; align-items: center; justify-content: center; border-radius: 4px; transition: all 0.2s ease; }
.password-toggle-btn:hover { background: #f1f3f5; color: #333; }
.remember-me-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: 400; color: #555; font-size: 0.9rem; margin-top: 0.5rem; align-self: flex-end; }
.remember-me-label input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--accent-color); }
.remember-me-label span { user-select: none; }
.error-message-container { min-height: 52px; display: flex; align-items: center; }
.error-message { background: #fff5f5; color: #c53030; padding: 0.85rem; border-radius: 8px; border: 1px solid #fed7d7; font-size: 0.9rem; width: 100%; }
2025-09-30 04:13:54 +00:00
.submit-btn { background: var(--accent-color); color: white; border: none; padding: 0.85rem; border-radius: 10px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.submit-btn:hover:not(:disabled) { background-color: var(--accent-color-dark); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(111, 66, 193, 0.2); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.demo-info { margin-top: 1.5rem; padding: 1rem; background: #f8f9fa; border-radius: 8px; font-size: 0.85rem; color: var(--text-light); text-align: center; }
.demo-info p { margin: 0.25rem 0; }
/* Responsive Design */
@media (max-width: 768px) {
.hero-title { font-size: 3rem; }
.hero-subtitle { font-size: 1.1rem; }
.features-grid { grid-template-columns: 1fr; }
.login-modal { margin: 1rem; padding: 2rem; }
2025-08-05 01:44:28 +00:00
}