* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    color: #333;
    font-size: 2em;
}

.btn {
    background: #4285f4;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background: #3367d6;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4285f4;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.success {
    background: #d1ecf1;
    color: #0c5460;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #bee5eb;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 30px;
    text-align: center;
}

.auth-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.auth-content {
    padding: 40px;
    text-align: center;
}

.auth-content h2 {
    color: #333;
    margin-bottom: 16px;
}

.auth-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

.user-info {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 24px;
}

.user-info h3 {
    color: #333;
    margin-bottom: 12px;
}

.success-message {
    color: #28a745;
    font-weight: 500;
    margin: 8px 0;
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-primary {
    background: #28a745;
}

.btn-primary:hover {
    background: #218838;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
}

footer {
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #e8eaed;
}

.privacy-note {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.photos-grid {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#photos-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}

.photo-item:hover {
    transform: translateY(-2px);
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px 12px 12px;
    color: white;
    opacity: 0;
    transition: opacity 0.2s;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.download-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.download-btn:hover {
    background: rgba(255,255,255,0.3);
}

#load-more-btn {
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    #photos-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .photo-item img {
        height: 150px;
    }
}

/* Remove bullet points from permission lists */
.permissions-notice ul {
    list-style: none;
    padding-left: 0;
}

.permissions-notice li {
    margin-bottom: 8px;
    padding-left: 0;
}

.privacy-notice ul {
    list-style: none;
    padding-left: 0;
}