Files
shopback/staticfiles/spa-test.css
Beyhan Oğur d9f1ea341e first commit
2026-04-26 22:27:56 +03:00

402 lines
6.3 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
}
.navbar {
background: white;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
position: sticky;
top: 0;
z-index: 100;
}
.nav-container {
max-width: 1200px;
margin: 0 auto;
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-brand {
font-size: 1.5rem;
font-weight: bold;
color: #667eea;
}
.nav-menu {
display: flex;
align-items: center;
gap: 1rem;
}
.user-email {
color: #666;
font-size: 0.9rem;
}
.btn-logout {
padding: 0.5rem 1rem;
background: #e74c3c;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 0.9rem;
transition: background 0.3s;
}
.btn-logout:hover {
background: #c0392b;
}
.page {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 2rem;
}
.container {
max-width: 500px;
width: 100%;
}
.card {
background: white;
border-radius: 20px;
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
padding: 3rem;
}
h1 {
color: #333;
margin-bottom: 0.5rem;
text-align: center;
font-size: 2rem;
}
.subtitle {
color: #666;
text-align: center;
margin-bottom: 2rem;
font-size: 1rem;
}
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
color: #333;
font-weight: 600;
margin-bottom: 0.5rem;
font-size: 0.9rem;
}
.form-group input {
width: 100%;
padding: 0.8rem 1rem;
border: 2px solid #e1e8ed;
border-radius: 8px;
font-size: 1rem;
transition: border-color 0.3s;
}
.form-group input:focus {
outline: none;
border-color: #667eea;
}
.btn {
width: 100%;
padding: 1rem;
border: none;
border-radius: 8px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
text-decoration: none;
display: block;
text-align: center;
}
.btn-primary {
background: #667eea;
color: white;
}
.btn-primary:hover {
background: #5568d3;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
.btn-google {
background: #4285f4;
color: white;
margin-bottom: 0.8rem;
}
.btn-google:hover {
background: #357ae8;
}
.btn-github {
background: #24292e;
color: white;
}
.btn-github:hover {
background: #1a1e22;
}
.btn-small {
width: auto;
padding: 0.5rem 1rem;
font-size: 0.85rem;
}
.divider {
text-align: center;
margin: 2rem 0;
color: #999;
position: relative;
}
.divider::before,
.divider::after {
content: "";
position: absolute;
top: 50%;
width: 45%;
height: 1px;
background: #ddd;
}
.divider::before { left: 0; }
.divider::after { right: 0; }
.social-buttons {
margin-top: 1.5rem;
}
.footer-text {
text-align: center;
margin-top: 2rem;
color: #666;
font-size: 0.9rem;
}
.footer-text a {
color: #667eea;
text-decoration: none;
font-weight: 600;
}
.footer-text a:hover {
text-decoration: underline;
}
.alert {
padding: 1rem;
border-radius: 8px;
margin-top: 1rem;
font-size: 0.9rem;
}
.alert-error {
background: #fee;
border: 2px solid #fcc;
color: #c33;
}
.alert-success {
background: #efe;
border: 2px solid #cfc;
color: #3c3;
}
.profile-section {
display: flex;
align-items: center;
gap: 1.5rem;
margin: 2rem 0;
padding: 1.5rem;
background: #f8f9fa;
border-radius: 12px;
}
.profile-avatar {
font-size: 4rem;
width: 80px;
height: 80px;
display: flex;
align-items: center;
justify-content: center;
background: #667eea;
border-radius: 50%;
}
.profile-info h2 {
color: #333;
margin-bottom: 0.3rem;
font-size: 1.5rem;
}
.text-muted {
color: #666;
font-size: 0.9rem;
}
.badge {
display: inline-block;
padding: 0.3rem 0.8rem;
background: #28a745;
color: white;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 600;
margin-top: 0.5rem;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 1rem;
margin: 2rem 0;
}
.stat-card {
background: #f8f9fa;
padding: 1.5rem;
border-radius: 12px;
display: flex;
align-items: center;
gap: 1rem;
}
.stat-icon {
font-size: 2rem;
}
.stat-info h3 {
color: #333;
font-size: 1.1rem;
margin-bottom: 0.3rem;
}
.stat-info p {
color: #666;
font-size: 0.8rem;
}
.token-section {
margin: 2rem 0;
}
.token-section h3 {
color: #333;
margin-bottom: 1rem;
}
.token-box {
margin-bottom: 1.5rem;
}
.token-box label {
display: block;
color: #666;
font-size: 0.85rem;
font-weight: 600;
margin-bottom: 0.5rem;
}
.token-box textarea {
width: 100%;
padding: 0.8rem;
border: 2px solid #e1e8ed;
border-radius: 8px;
font-family: 'Courier New', monospace;
font-size: 0.75rem;
resize: vertical;
min-height: 80px;
margin-bottom: 0.5rem;
}
.loading-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.7);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 9999;
color: white;
}
.spinner {
border: 4px solid rgba(255,255,255,0.3);
border-top: 4px solid white;
border-radius: 50%;
width: 50px;
height: 50px;
animation: spin 1s linear infinite;
margin-bottom: 1rem;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Dashboard specific styles */
#dashboardPage .container {
max-width: 800px;
}
#dashboardPage .card {
padding: 2rem;
}
.info-box {
background: #e7f3ff;
border: 2px solid #b3d9ff;
color: #004085;
padding: 1rem;
border-radius: 8px;
margin-top: 1.5rem;
font-size: 0.85rem;
}
.info-box strong {
display: block;
margin-bottom: 0.5rem;
}
.info-box ol {
margin-left: 1.5rem;
margin-top: 0.5rem;
}
.info-box li {
margin: 0.3rem 0;
}