imetting_frontend/src/pages/HomePage.css

308 lines
5.1 KiB
CSS
Raw Normal View History

2025-08-05 01:44:28 +00:00
/* HomePage Styles */
.homepage {
min-height: 100vh;
width: 100%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
/* Header */
.homepage-header {
padding: 1rem 0;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
}
.header-content {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 1.5rem;
font-weight: bold;
}
.logo-icon {
width: 32px;
height: 32px;
color: #ffd700;
}
.login-btn {
background: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.3);
color: white;
padding: 0.5rem 1.5rem;
border-radius: 25px;
cursor: pointer;
transition: all 0.3s ease;
font-size: 0.9rem;
}
.login-btn:hover {
background: rgba(255, 255, 255, 0.3);
transform: translateY(-1px);
}
/* Hero Section */
.hero {
padding: 6rem 2rem;
text-align: center;
max-width: 1200px;
margin: 0 auto;
}
.hero-title {
font-size: 3.5rem;
font-weight: 700;
margin-bottom: 1.5rem;
background: linear-gradient(45deg, #fff, #ffd700);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero-subtitle {
font-size: 1.2rem;
margin-bottom: 3rem;
opacity: 0.9;
max-width: 600px;
margin-left: auto;
margin-right: auto;
line-height: 1.6;
}
.cta-button {
background: linear-gradient(45deg, #ffd700, #ffed4e);
color: #333;
border: none;
padding: 1rem 2.5rem;
font-size: 1.1rem;
font-weight: 600;
border-radius: 50px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}
.cta-button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}
/* Features Section */
.features {
padding: 6rem 2rem;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
}
.features-container {
max-width: 1200px;
margin: 0 auto;
}
.features-title {
text-align: center;
font-size: 2.5rem;
margin-bottom: 4rem;
font-weight: 600;
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
}
.feature-card {
background: rgba(255, 255, 255, 0.1);
padding: 2rem;
border-radius: 20px;
text-align: center;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
transition: all 0.3s ease;
}
.feature-card:hover {
transform: translateY(-5px);
background: rgba(255, 255, 255, 0.15);
}
.feature-icon {
width: 48px;
height: 48px;
color: #ffd700;
margin-bottom: 1rem;
}
.feature-card h3 {
font-size: 1.3rem;
margin-bottom: 1rem;
font-weight: 600;
}
.feature-card p {
opacity: 0.9;
line-height: 1.6;
}
/* Modal Styles */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
backdrop-filter: blur(5px);
}
.login-modal {
background: white;
color: #333;
padding: 2rem;
border-radius: 20px;
width: 90%;
max-width: 400px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
}
.modal-header h2 {
margin: 0;
font-size: 1.5rem;
font-weight: 600;
}
.close-btn {
background: none;
border: none;
cursor: pointer;
color: #666;
padding: 0.5rem;
border-radius: 50%;
transition: all 0.3s ease;
}
.close-btn:hover {
background: #f5f5f5;
color: #333;
}
/* Form Styles */
.login-form {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.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 {
padding: 0.75rem;
border: 2px solid #e1e5e9;
border-radius: 10px;
font-size: 1rem;
transition: all 0.3s ease;
}
.form-group input:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.error-message {
background: #fee;
color: #c53030;
padding: 0.75rem;
border-radius: 8px;
border: 1px solid #fed7d7;
font-size: 0.9rem;
}
.submit-btn {
background: linear-gradient(45deg, #667eea, #764ba2);
color: white;
border: none;
padding: 0.75rem;
border-radius: 10px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}
.submit-btn:hover:not(:disabled) {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.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: #666;
}
.demo-info p {
margin: 0.25rem 0;
}
/* Responsive Design */
@media (max-width: 768px) {
.hero-title {
font-size: 2.5rem;
}
.hero-subtitle {
font-size: 1rem;
}
.features-grid {
grid-template-columns: 1fr;
}
.login-modal {
margin: 1rem;
}
}