.album-container {
    max-width: 1400px;
    width: 95%;
    padding: 3rem 2rem;
    margin: 0 auto;
}

.album-container header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-link:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-4px);
}

.login-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 2rem;
    text-align: center;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--glass-bg);
    /* Optional: Add card background */
    border: 1px solid var(--glass-border);
    /* Optional: Add card border */
    border-radius: 24px;
    /* Optional: Rounded corners */
    backdrop-filter: blur(20px);
    /* Optional: Blur effect */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.login-form input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
    text-align: center;
}

.login-form input:focus {
    border-color: var(--text-primary);
    background: rgba(0, 0, 0, 0.5);
}

.login-form button {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 12px;
    background: var(--text-primary);
    color: var(--bg-color);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.login-form button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.error-text {
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.album-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
    padding-bottom: 4rem;
}

.media-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    aspect-ratio: 1;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.media-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.media-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.media-item:hover .media-content {
    transform: scale(1.05);
}

.media-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

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

.media-caption {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.delete-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-btn:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 6rem 2rem;
    font-size: 1.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    max-width: 600px;
    margin: 0 auto;
}

/* File Upload Styling */
.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 2rem;
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--glass-bg);
}

.file-upload-label:hover {
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
}

.upload-icon {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.file-upload-label:hover .upload-icon {
    color: var(--text-primary);
}

#file-name-display {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

#file-name-display.selected {
    color: var(--text-primary);
    font-weight: 500;
}

.hidden-input {
    display: none;
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .login-form {
        flex-direction: column;
    }

    .album-container {
        padding: 2rem 1rem;
    }

    .media-overlay {
        padding: 1rem;
    }
}